diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-10-11 10:21:46 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-11 10:21:46 -0700 |
commit | 9567a670d2b1f99bfd9547ed186441263b760b17 (patch) | |
tree | 0cc871f81ada13521ccc9bf5e7a1bf1c4bf8afd3 /t/helper | |
parent | The eleventh batch (diff) | |
parent | t5326: test propagating hashcache values (diff) | |
download | tgif-9567a670d2b1f99bfd9547ed186441263b760b17.tar.xz |
Merge branch 'tb/midx-write-propagate-namehash'
"git multi-pack-index write --bitmap" learns to propagate the
hashcache from original bitmap to resulting bitmap.
* tb/midx-write-propagate-namehash:
t5326: test propagating hashcache values
p5326: generate pack bitmaps before writing the MIDX bitmap
p5326: don't set core.multiPackIndex unnecessarily
p5326: create missing 'perf-tag' tag
midx.c: respect 'pack.writeBitmapHashcache' when writing bitmaps
pack-bitmap.c: propagate namehash values from existing bitmaps
t/helper/test-bitmap.c: add 'dump-hashes' mode
Diffstat (limited to 't/helper')
-rw-r--r-- | t/helper/test-bitmap.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/t/helper/test-bitmap.c b/t/helper/test-bitmap.c index 134a1e9d76..ff35f5999b 100644 --- a/t/helper/test-bitmap.c +++ b/t/helper/test-bitmap.c @@ -7,6 +7,11 @@ static int bitmap_list_commits(void) return test_bitmap_commits(the_repository); } +static int bitmap_dump_hashes(void) +{ + return test_bitmap_hashes(the_repository); +} + int cmd__bitmap(int argc, const char **argv) { setup_git_directory(); @@ -16,9 +21,12 @@ int cmd__bitmap(int argc, const char **argv) if (!strcmp(argv[1], "list-commits")) return bitmap_list_commits(); + if (!strcmp(argv[1], "dump-hashes")) + return bitmap_dump_hashes(); usage: - usage("\ttest-tool bitmap list-commits"); + usage("\ttest-tool bitmap list-commits\n" + "\ttest-tool bitmap dump-hashes"); return -1; } |