summaryrefslogtreecommitdiff
path: root/notes.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-03-12 02:27:51 +0000
committerJunio C Hamano <gitster@pobox.com>2018-03-14 09:23:50 -0700
commit916bc35b29af6e0f4f215dea9c84e4185de0fec4 (patch)
tree21f8318b909c7dc21129bad02d6adc7d46fbc705 /notes.c
parent575042a04f671fa1a9cf9d5c21b30a2dadbe6c7e (diff)
downloadgit-916bc35b29af6e0f4f215dea9c84e4185de0fec4.tar.gz
tree-walk: convert tree entry functions to object_id
Convert get_tree_entry and find_tree_entry to take pointers to struct object_id. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'notes.c')
-rw-r--r--notes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/notes.c b/notes.c
index ce9a8f53f8..d25121a65d 100644
--- a/notes.c
+++ b/notes.c
@@ -1012,7 +1012,7 @@ void init_notes(struct notes_tree *t, const char *notes_ref,
return;
if (flags & NOTES_INIT_WRITABLE && read_ref(notes_ref, &object_oid))
die("Cannot use notes ref %s", notes_ref);
- if (get_tree_entry(object_oid.hash, "", oid.hash, &mode))
+ if (get_tree_entry(&object_oid, "", &oid, &mode))
die("Failed to read notes tree referenced by %s (%s)",
notes_ref, oid_to_hex(&object_oid));