aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-06-10 17:40:14 -0400
committerJunio C Hamano <gitster@pobox.com>2014-06-13 12:08:17 -0700
commit66c2827ea4deb24ff541e30a5b6239ad5e9f6801 (patch)
treef18ee239e5cfe24ad5fed70b3e4836fe2aa63384 /builtin
parent0fb370da9ca972f9571530f95c0dacb31368c280 (diff)
downloadgit-66c2827ea4deb24ff541e30a5b6239ad5e9f6801.tar.gz
git-66c2827ea4deb24ff541e30a5b6239ad5e9f6801.tar.xz
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 'builtin')
-rw-r--r--builtin/blame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/blame.c b/builtin/blame.c
index 85a368130..38784ab9d 100644
--- a/builtin/blame.c
+++ b/builtin/blame.c
@@ -2046,7 +2046,7 @@ static struct commit *fake_working_tree_commit(struct diff_options *opt,
ident, ident, path,
(!contents_from ? path :
(!strcmp(contents_from, "-") ? "standard input" : contents_from)));
- commit->buffer = strbuf_detach(&msg, NULL);
+ set_commit_buffer(commit, strbuf_detach(&msg, NULL));
if (!contents_from || strcmp("-", contents_from)) {
struct stat st;