summaryrefslogtreecommitdiff
path: root/line-log.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 /line-log.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 'line-log.c')
-rw-r--r--line-log.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/line-log.c b/line-log.c
index cdc2257db5..ecdce08c4b 100644
--- a/line-log.c
+++ b/line-log.c
@@ -501,8 +501,7 @@ static void fill_blob_sha1(struct commit *commit, struct diff_filespec *spec)
unsigned mode;
struct object_id oid;
- if (get_tree_entry(commit->object.oid.hash, spec->path,
- oid.hash, &mode))
+ if (get_tree_entry(&commit->object.oid, spec->path, &oid, &mode))
die("There is no path %s in the commit", spec->path);
fill_filespec(spec, &oid, 1, mode);