summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-06-10 21:40:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-13 19:08:17 (GMT)
commit66c2827ea4deb24ff541e30a5b6239ad5e9f6801 (patch)
treef18ee239e5cfe24ad5fed70b3e4836fe2aa63384 /object.c
parent0fb370da9ca972f9571530f95c0dacb31368c280 (diff)
downloadgit-66c2827ea4deb24ff541e30a5b6239ad5e9f6801.zip
git-66c2827ea4deb24ff541e30a5b6239ad5e9f6801.tar.gz
git-66c2827ea4deb24ff541e30a5b6239ad5e9f6801.tar.bz2
provide a helper to set the commit buffer
Right now this is just a one-liner, but abstracting it will make it easier to change later. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 57a0890..44ca657 100644
--- a/object.c
+++ b/object.c
@@ -198,7 +198,7 @@ struct object *parse_object_buffer(const unsigned char *sha1, enum object_type t
if (parse_commit_buffer(commit, buffer, size))
return NULL;
if (!commit->buffer) {
- commit->buffer = buffer;
+ set_commit_buffer(commit, buffer);
*eaten_p = 1;
}
obj = &commit->object;