Commit 73cd7d9
pack-bitmap: drop bitmap_index argument from try_partial_reuse()
Starting in commit 0f533c7 (pack-bitmap: read multi-pack bitmaps,
2021-08-31), we no longer look at the "struct bitmap_index" passed to
try_partial_reuse(). This is because we only handle verbatim reuse from
a single pack: either the pack whose bitmap we're looking at, or the
"preferred" pack of a midx bitmap. And thus the primary item we look at
is the "pack" parameter added by that same commit, and not the
bitmap_git->pack parameter (which would be NULL for a midx bitmap). It's
our caller, reuse_partial_packfile_from_bitmap(), which decides which
pack to use and passes it in to us.
Drop the unused parameter to prevent confusion.
Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent bfbb60d commit 73cd7d9
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1328 | 1328 | | |
1329 | 1329 | | |
1330 | 1330 | | |
1331 | | - | |
1332 | | - | |
| 1331 | + | |
1333 | 1332 | | |
1334 | 1333 | | |
1335 | 1334 | | |
| |||
1476 | 1475 | | |
1477 | 1476 | | |
1478 | 1477 | | |
1479 | | - | |
| 1478 | + | |
1480 | 1479 | | |
1481 | 1480 | | |
1482 | 1481 | | |
| |||
0 commit comments