diff options
author | Jeff King <peff@peff.net> | 2019-01-07 09:37:54 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-08 18:41:06 +0100 |
commit | 98374a07c98d1acc200c423b87495365a59cce0b (patch) | |
tree | 5d13cd44abc62bd17672bd00a7e8c28a198f5346 /bulk-checkin.c | |
parent | sha1-file: convert pass-through functions to object_id (diff) | |
download | git-98374a07c98d1acc200c423b87495365a59cce0b.tar.xz git-98374a07c98d1acc200c423b87495365a59cce0b.zip |
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>
Diffstat (limited to 'bulk-checkin.c')
-rw-r--r-- | bulk-checkin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bulk-checkin.c b/bulk-checkin.c index 409ecb566b..39ee7d6107 100644 --- a/bulk-checkin.c +++ b/bulk-checkin.c @@ -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 */ |