builtin: stop using `the_index`
[alt-git.git] / t / helper / test-bitmap.c
blobaf43ee1cb5ee27c6aad608c7a233e234a7146f89
1 #include "test-tool.h"
2 #include "git-compat-util.h"
3 #include "pack-bitmap.h"
4 #include "setup.h"
6 static int bitmap_list_commits(void)
8 return test_bitmap_commits(the_repository);
11 static int bitmap_dump_hashes(void)
13 return test_bitmap_hashes(the_repository);
16 int cmd__bitmap(int argc, const char **argv)
18 setup_git_directory();
20 if (argc != 2)
21 goto usage;
23 if (!strcmp(argv[1], "list-commits"))
24 return bitmap_list_commits();
25 if (!strcmp(argv[1], "dump-hashes"))
26 return bitmap_dump_hashes();
28 usage:
29 usage("\ttest-tool bitmap list-commits\n"
30 "\ttest-tool bitmap dump-hashes");
32 return -1;