mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
pack-objects: use object_id in packlist_alloc()
The only caller of packlist_alloc() already has a "struct object_id", and we immediately copy the hash they pass us into our own object_id. Let's avoid the unnecessary round-trip to a raw sha1 pointer. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
0dfed92dfd
commit
f1cbd033e2
@@ -183,7 +183,7 @@ static inline void packing_data_unlock(struct packing_data *pdata)
|
||||
}
|
||||
|
||||
struct object_entry *packlist_alloc(struct packing_data *pdata,
|
||||
const unsigned char *sha1,
|
||||
const struct object_id *oid,
|
||||
uint32_t index_pos);
|
||||
|
||||
struct object_entry *packlist_find(struct packing_data *pdata,
|
||||
|
||||
Reference in New Issue
Block a user