mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
convert has_sha1_file() callers to has_object_file()
The only remaining callers of has_sha1_file() actually have an object_id already. They can use the "object" variant, rather than dereferencing the hash themselves. The code changes here were completely generated by the included coccinelle patch. 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
d7a245730b
commit
98374a07c9
@@ -67,7 +67,7 @@ static int already_written(struct bulk_checkin_state *state, struct object_id *o
|
||||
int i;
|
||||
|
||||
/* The object may already exist in the repository */
|
||||
if (has_sha1_file(oid->hash))
|
||||
if (has_object_file(oid))
|
||||
return 1;
|
||||
|
||||
/* Might want to keep the list sorted */
|
||||
|
||||
Reference in New Issue
Block a user