write_midx_bitmap(): drop unused refs_snapshot parameter

The refactoring in 90b2bb710d (midx: extract bitmap write setup, 2022-07-19) hoisted our call to find_commits_for_midx_bitmap() into the caller, which means we no longer need to see the refs_snapshot at all. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Jul 26, 2022 at 18:05 UTC 51d1b69a534b591aa4afdc6f64c0e7aa8d886961
1 file changed +1 -2
midx.c
+1 -2
@@ -1059,7 +1059,6 @@ static int write_midx_bitmap(const char *midx_name,
1059 struct commit **commits,
1060 uint32_t commits_nr,
1061 uint32_t *pack_order,
1062 - const char *refs_snapshot,
1062 unsigned flags)
1063 {
1064 int ret, i;
@@ -1462,7 +1461,7 @@ static int write_midx_internal(const char *object_dir,
1461
1462 if (write_midx_bitmap(midx_name.buf, midx_hash, &pdata,
1463 commits, commits_nr, ctx.pack_order,
1465 - refs_snapshot, flags) < 0) {
1464 + flags) < 0) {
1465 error(_("could not write multi-pack bitmap"));
1466 result = 1;
1467 goto cleanup;