summaryrefslogtreecommitdiffstats
path: root/list-objects.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-05-07 00:10:14 +0200
committerJunio C Hamano <gitster@pobox.com>2017-05-08 08:12:57 +0200
commit3aca1fc6c9c69fbfce0e6312fc8e3087cb6334a4 (patch)
tree659abe824d500138947540b5217d142cac1a75f0 /list-objects.c
parentConvert remaining callers of lookup_blob to object_id (diff)
downloadgit-3aca1fc6c9c69fbfce0e6312fc8e3087cb6334a4.tar.xz
git-3aca1fc6c9c69fbfce0e6312fc8e3087cb6334a4.zip
Convert lookup_blob to struct object_id
Convert lookup_blob to take a pointer to struct object_id. The commit was created with manual changes to blob.c and blob.h, plus the following semantic patch: @@ expression E1; @@ - lookup_blob(E1.hash) + lookup_blob(&E1) @@ expression E1; @@ - lookup_blob(E1->hash) + lookup_blob(E1) Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'list-objects.c')
-rw-r--r--list-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/list-objects.c b/list-objects.c
index f3ca6aafb7..721e5fb08b 100644
--- a/list-objects.c
+++ b/list-objects.c
@@ -119,7 +119,7 @@ static void process_tree(struct rev_info *revs,
cb_data);
else
process_blob(revs,
- lookup_blob(entry.oid->hash),
+ lookup_blob(entry.oid),
show, base, entry.path,
cb_data);
}