]> git.ipfire.org Git - thirdparty/git.git/commit - refs.h
refs: convert resolve_refdup and refs_resolve_refdup to struct object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 15 Oct 2017 22:06:55 +0000 (22:06 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Oct 2017 02:05:50 +0000 (11:05 +0900)
commit0f2dc722dd01097d1e1c1dac43b2f57924594457
treea8121caea164480b7dec0c9d069160d9797fc21d
parent6ccac9eed56280f035d84605b4451ae1721a3100
refs: convert resolve_refdup and refs_resolve_refdup to struct object_id

All of the callers already pass the hash member of struct object_id, so
update them to pass a pointer to the struct directly,

This transformation was done with an update to declaration and
definition and the following semantic patch:

@@
expression E1, E2, E3, E4;
@@
- resolve_refdup(E1, E2, E3.hash, E4)
+ resolve_refdup(E1, E2, &E3, E4)

@@
expression E1, E2, E3, E4;
@@
- resolve_refdup(E1, E2, E3->hash, E4)
+ resolve_refdup(E1, E2, E3, E4)

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 files changed:
builtin/am.c
builtin/branch.c
builtin/checkout.c
builtin/clone.c
builtin/fmt-merge-msg.c
builtin/merge.c
builtin/notes.c
builtin/show-branch.c
builtin/submodule--helper.c
refs.c
refs.h
submodule.c