Convert lookup_tree to struct object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sat, 6 May 2017 22:10:17 +0000 (22:10 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 May 2017 06:12:57 +0000 (15:12 +0900)
commit740ee055c6178fc2dd43c5ccfbd367c4c64d6e0d
treee0ce96e53ce7957480f693147ea9693a33c6a211
parent49a09e74a413cfccee2c249407b46cdd0ea699cd
Convert lookup_tree to struct object_id

Convert the lookup_tree function to take a pointer to struct object_id.

The commit was created with manual changes to tree.c, tree.h, and
object.c, plus the following semantic patch:

@@
@@
- lookup_tree(EMPTY_TREE_SHA1_BIN)
+ lookup_tree(&empty_tree_oid)

@@
expression E1;
@@
- lookup_tree(E1.hash)
+ lookup_tree(&E1)

@@
expression E1;
@@
- lookup_tree(E1->hash)
+ lookup_tree(E1)

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
18 files changed:
builtin/am.c
builtin/diff-tree.c
builtin/diff.c
builtin/reflog.c
cache-tree.c
commit.c
fsck.c
http-push.c
list-objects.c
merge-recursive.c
object.c
reachable.c
revision.c
sequencer.c
tag.c
tree.c
tree.h
walker.c