summaryrefslogtreecommitdiff
path: root/midx.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-07-26 22:05:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-07-27 07:02:45 (GMT)
commit51d1b69a534b591aa4afdc6f64c0e7aa8d886961 (patch)
tree060bd8042f9d745db843a6028814b91ccd461db1 /midx.c
parent068fa54c0034be0b953d798628b06815f9cfaff0 (diff)
downloadgit-51d1b69a534b591aa4afdc6f64c0e7aa8d886961.zip
git-51d1b69a534b591aa4afdc6f64c0e7aa8d886961.tar.gz
git-51d1b69a534b591aa4afdc6f64c0e7aa8d886961.tar.bz2
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>
Diffstat (limited to 'midx.c')
-rw-r--r--midx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/midx.c b/midx.c
index 772ab7d..4e956ca 100644
--- a/midx.c
+++ b/midx.c
@@ -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;
@@ -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;