summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2020-02-24 04:30:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-02-24 20:55:52 (GMT)
commita93c141ddef25dc999fff73c590b42d3af606ff3 (patch)
tree96c8599bacfd25c5e348dcba39a62411ac02c8e7 /builtin
parent3f83fd5e44c1f038c8a7033cb77399e9ef4f43a9 (diff)
downloadgit-a93c141ddef25dc999fff73c590b42d3af606ff3.zip
git-a93c141ddef25dc999fff73c590b42d3af606ff3.tar.gz
git-a93c141ddef25dc999fff73c590b42d3af606ff3.tar.bz2
pack-objects: convert oe_set_delta_ext() to use object_id
We already store an object_id internally, and now our sole caller also has one. Let's stop passing around the internal hash array, which adds a bit of type safety. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index 8692ab3..44f44fc 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -1756,7 +1756,7 @@ static void check_object(struct object_entry *entry)
entry->delta_sibling_idx = base_entry->delta_child_idx;
SET_DELTA_CHILD(base_entry, entry);
} else {
- SET_DELTA_EXT(entry, base_ref.hash);
+ SET_DELTA_EXT(entry, &base_ref);
}
unuse_pack(&w_curs);