diff options
author | Jeff King <peff@peff.net> | 2020-02-23 23:30:07 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-02-24 12:55:52 -0800 |
commit | a93c141ddef25dc999fff73c590b42d3af606ff3 (patch) | |
tree | 96c8599bacfd25c5e348dcba39a62411ac02c8e7 /pack-objects.h | |
parent | pack-objects: read delta base oid into object_id struct (diff) | |
download | tgif-a93c141ddef25dc999fff73c590b42d3af606ff3.tar.xz |
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 'pack-objects.h')
-rw-r--r-- | pack-objects.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-objects.h b/pack-objects.h index d3975e079b..9d88e3e518 100644 --- a/pack-objects.h +++ b/pack-objects.h @@ -292,7 +292,7 @@ static inline void oe_set_delta(struct packing_data *pack, void oe_set_delta_ext(struct packing_data *pack, struct object_entry *e, - const unsigned char *sha1); + const struct object_id *oid); static inline struct object_entry *oe_delta_child( const struct packing_data *pack, |