]> git.ipfire.org Git - thirdparty/git.git/commit - apply.c
convert has_sha1_file() callers to has_object_file()
authorJeff King <peff@peff.net>
Mon, 7 Jan 2019 08:37:54 +0000 (03:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Jan 2019 17:41:06 +0000 (09:41 -0800)
commit98374a07c98d1acc200c423b87495365a59cce0b
tree5d13cd44abc62bd17672bd00a7e8c28a198f5346
parentd7a245730b4397e50592e1f4ebce765f7fbf5f93
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>
12 files changed:
apply.c
builtin/fetch.c
builtin/index-pack.c
builtin/reflog.c
builtin/show-ref.c
bulk-checkin.c
cache-tree.c
contrib/coccinelle/object_id.cocci
http-walker.c
refs.c
send-pack.c
sha1-file.c