Skip to content

Commit

Permalink
write_midx_bitmap(): drop unused refs_snapshot parameter
Browse files Browse the repository at this point in the history
The refactoring in 90b2bb7 (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>
  • Loading branch information
peff authored and gitster committed Jul 27, 2022
1 parent 068fa54 commit 51d1b69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions midx.c
Expand Up @@ -1059,7 +1059,6 @@ static int write_midx_bitmap(const char *midx_name,
struct commit **commits,
uint32_t commits_nr,
uint32_t *pack_order,
const char *refs_snapshot,
unsigned flags)
{
int ret, i;
Expand Down Expand Up @@ -1462,7 +1461,7 @@ static int write_midx_internal(const char *object_dir,

if (write_midx_bitmap(midx_name.buf, midx_hash, &pdata,
commits, commits_nr, ctx.pack_order,
refs_snapshot, flags) < 0) {
flags) < 0) {
error(_("could not write multi-pack bitmap"));
result = 1;
goto cleanup;
Expand Down

0 comments on commit 51d1b69

Please sign in to comment.