summaryrefslogtreecommitdiff
path: root/pack-objects.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2019-02-14 05:50:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-02-14 23:26:15 (GMT)
commitc409d108b857799ae699654d2fc33b063c9aef9d (patch)
tree002dfd4a6a6e8fd8a681302010cba425cb49255e /pack-objects.c
parentb53c502807d760ec55db7e7520a360ee35ab7646 (diff)
downloadgit-c409d108b857799ae699654d2fc33b063c9aef9d.zip
git-c409d108b857799ae699654d2fc33b063c9aef9d.tar.gz
git-c409d108b857799ae699654d2fc33b063c9aef9d.tar.bz2
pack-objects: drop unused parameter from oe_map_new_pack()
Since 43fa44fa3b (pack-objects: move in_pack out of struct object_entry, 2018-04-14), we store the source pack for each object as a small index rather than as a pointer. When we see a new pack that has no allocated index, we fall back to generating an array of pointers by calling oe_map_new_pack(). Perhaps counter-intuitively, that function does not need to actually see our new index-less pack. It only allocates and populates the array with the existing packs, after which oe_set_in_pack() actually adds the new pack to the array. Let's drop the unused "struct packed_git" argument to oe_map_new_pack() to avoid confusion. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-objects.c')
-rw-r--r--pack-objects.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pack-objects.c b/pack-objects.c
index e7cd337..ce33b89 100644
--- a/pack-objects.c
+++ b/pack-objects.c
@@ -119,8 +119,7 @@ static void prepare_in_pack_by_idx(struct packing_data *pdata)
* this fall back code, just stay simple and fall back to using
* in_pack[] array.
*/
-void oe_map_new_pack(struct packing_data *pack,
- struct packed_git *p)
+void oe_map_new_pack(struct packing_data *pack)
{
uint32_t i;