]> git.ipfire.org Git - thirdparty/git.git/commit - unpack-trees.c
refs: convert resolve_gitlink_ref to struct object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sun, 15 Oct 2017 22:07:07 +0000 (22:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Oct 2017 02:05:51 +0000 (11:05 +0900)
commita98e6101f01b6991e780fc0b75f2937615fa84a9
tree50035adb93a84ce2468f44027e1620c5253a76ec
parent1053fe829c037c5a725786bac35d05a113c91f55
refs: convert resolve_gitlink_ref to struct object_id

Convert the declaration and definition of resolve_gitlink_ref to use
struct object_id and apply the following semantic patch:

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

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

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-index.c
combine-diff.c
diff-lib.c
dir.c
read-cache.c
refs.c
refs.h
sha1_file.c
unpack-trees.c