Skip to content

Commit 51d1b69

Browse files
peffgitster
authored andcommitted
write_midx_bitmap(): drop unused refs_snapshot parameter
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 068fa54 commit 51d1b69

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

midx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,6 @@ static int write_midx_bitmap(const char *midx_name,
10591059
struct commit **commits,
10601060
uint32_t commits_nr,
10611061
uint32_t *pack_order,
1062-
const char *refs_snapshot,
10631062
unsigned flags)
10641063
{
10651064
int ret, i;
@@ -1462,7 +1461,7 @@ static int write_midx_internal(const char *object_dir,
14621461

14631462
if (write_midx_bitmap(midx_name.buf, midx_hash, &pdata,
14641463
commits, commits_nr, ctx.pack_order,
1465-
refs_snapshot, flags) < 0) {
1464+
flags) < 0) {
14661465
error(_("could not write multi-pack bitmap"));
14671466
result = 1;
14681467
goto cleanup;

0 commit comments

Comments
 (0)