Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] diff: consolidate various calls into diffcore.
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index b4e000e9c2cdc726271bdc3ced9c2534848d18de..abbf155da938cf675696e812b4083c8a773ffab0 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-103,6
+103,10
@@
int parse_commit(struct commit *item)
sha1_to_hex(item->object.sha1));
}
ret = parse_commit_buffer(item, buffer, size);
+ if (!ret) {
+ item->buffer = buffer;
+ return 0;
+ }
free(buffer);
return ret;
}