Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_file: convert read_sha1_file to struct object_id
[gitweb.git]
/
builtin
/
grep.c
diff --git
a/builtin/grep.c
b/builtin/grep.c
index 386a86b66e93d06744e03831d14745841ef8e2b6..bf50bab6f8f1bcf20110af6036c1eb924b70f78b 100644
(file)
--- a/
builtin/grep.c
+++ b/
builtin/grep.c
@@
-306,7
+306,7
@@
static void *lock_and_read_oid_file(const struct object_id *oid, enum object_typ
void *data;
grep_read_lock();
- data = read_
sha1_file(oid->hash
, type, size);
+ data = read_
object_file(oid
, type, size);
grep_read_unlock();
return data;
}