Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
sha1_file: convert sha1_object_info* to object_id
[gitweb.git]
/
diff.c
diff --git
a/diff.c
b/diff.c
index 8184ecfc2abdbf76006894d3cb2c3b21279c9576..b463078d570356477b08f94f75c9a8a821737f84 100644
(file)
--- a/
diff.c
+++ b/
diff.c
@@
-3615,7
+3615,7
@@
int diff_populate_filespec(struct diff_filespec *s, unsigned int flags)
else {
enum object_type type;
if (size_only || (flags & CHECK_BINARY)) {
- type =
sha1_object_info(s->oid.hash
, &s->size);
+ type =
oid_object_info(&s->oid
, &s->size);
if (type < 0)
die("unable to read %s",
oid_to_hex(&s->oid));