Convert lookup_blob to struct object_id
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sat, 6 May 2017 22:10:14 +0000 (22:10 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 May 2017 06:12:57 +0000 (15:12 +0900)
commit3aca1fc6c9c69fbfce0e6312fc8e3087cb6334a4
tree659abe824d500138947540b5217d142cac1a75f0
parent3e9309815da9aab4e13195b7c6a52c1f7161562a
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>
15 files changed:
blob.c
blob.h
builtin/fast-export.c
builtin/fsck.c
builtin/index-pack.c
builtin/merge-tree.c
builtin/unpack-objects.c
fsck.c
http-push.c
list-objects.c
object.c
reachable.c
revision.c
tag.c
walker.c