tree: convert parse_tree_indirect to struct object_id
commita9dbc179100b7119cb44eb5b4adcb47967f346a6
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sat, 6 May 2017 22:10:37 +0000 (6 22:10 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 May 2017 06:12:58 +0000 (8 15:12 +0900)
tree8c09732c9f70c38bde9256781b984d13d8518043
parent48be4c625bf0f35309fdf501f47eb7445a9f5494
tree: convert parse_tree_indirect to struct object_id

Convert parse_tree_indirect to take a pointer to struct object_id.
Update all the callers.  This transformation was achieved using the
following semantic patch and manual updates to the declaration and
definition.  Update builtin/checkout.c manually as well, since it uses a
ternary expression not handled by the semantic patch.

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

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

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
16 files changed:
archive.c
builtin/am.c
builtin/checkout.c
builtin/clone.c
builtin/commit.c
builtin/ls-files.c
builtin/ls-tree.c
builtin/merge.c
builtin/read-tree.c
builtin/reset.c
diff-lib.c
merge.c
sequencer.c
t/helper/test-match-trees.c
tree.c
tree.h