Add a helper function to compare file contents
[git.git] / t / helper / test-bitmap.c
blobff35f5999b367106f04743582ca9fb490b80501f
1 #include "test-tool.h"
2 #include "cache.h"
3 #include "pack-bitmap.h"
5 static int bitmap_list_commits(void)
7 return test_bitmap_commits(the_repository);
10 static int bitmap_dump_hashes(void)
12 return test_bitmap_hashes(the_repository);
15 int cmd__bitmap(int argc, const char **argv)
17 setup_git_directory();
19 if (argc != 2)
20 goto usage;
22 if (!strcmp(argv[1], "list-commits"))
23 return bitmap_list_commits();
24 if (!strcmp(argv[1], "dump-hashes"))
25 return bitmap_dump_hashes();
27 usage:
28 usage("\ttest-tool bitmap list-commits\n"
29 "\ttest-tool bitmap dump-hashes");
31 return -1;