]> git.ipfire.org Git - thirdparty/git.git/commit - remote.c
refs: convert dwim_ref and expand_ref to struct object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 15 Oct 2017 22:06:57 +0000 (22:06 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Oct 2017 02:05:51 +0000 (11:05 +0900)
commitcca5fa6406046c19ab5a8117fe71bf4402c00d88
treeb7305cc09752a86366cb4695cd504adec207e022
parent34c290a6fc8b1f6705d2646d726df2260927da0f
refs: convert dwim_ref and expand_ref to struct object_id

All of the callers of these functions just pass the hash member of a
struct object_id, so convert them to use a pointer to struct object_id
directly.  Insert a check for NULL in expand_ref on a temporary basis;
this check can be removed when resolve_ref_unsafe is converted as well.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
15 files changed:
archive.c
branch.c
builtin/fast-export.c
builtin/log.c
builtin/merge-base.c
builtin/merge.c
builtin/rev-parse.c
builtin/show-branch.c
bundle.c
refs.c
refs.h
remote.c
sha1_name.c
upload-pack.c
wt-status.c