]> git.ipfire.org Git - thirdparty/git.git/blob - t/helper/test-bitmap.c
Sync with 2.31.5
[thirdparty/git.git] / t / helper / test-bitmap.c
1 #include "test-tool.h"
2 #include "cache.h"
3 #include "pack-bitmap.h"
4
5 static int bitmap_list_commits(void)
6 {
7 return test_bitmap_commits(the_repository);
8 }
9
10 int cmd__bitmap(int argc, const char **argv)
11 {
12 setup_git_directory();
13
14 if (argc != 2)
15 goto usage;
16
17 if (!strcmp(argv[1], "list-commits"))
18 return bitmap_list_commits();
19
20 usage:
21 usage("\ttest-tool bitmap list-commits");
22
23 return -1;
24 }