aboutsummaryrefslogtreecommitdiff
path: root/show-branch.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-01-27 01:54:59 -0800
committerJunio C Hamano <junkio@cox.net>2006-01-28 00:09:39 -0800
commit3815f423ae39bf774de3c268c6d3e3b72128a4e5 (patch)
treec3499f33ab225a107d0cc69bfef3567685e246c1 /show-branch.c
parent62a604ba1c8f1ebcb135039ab04c9ca6c96b67f4 (diff)
downloadgit-3815f423ae39bf774de3c268c6d3e3b72128a4e5.tar.gz
git-3815f423ae39bf774de3c268c6d3e3b72128a4e5.tar.xz
pretty_print_commit(): pass commit object instead of commit->buffer.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'show-branch.c')
-rw-r--r--show-branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/show-branch.c b/show-branch.c
index d06e57740..ffe7456a6 100644
--- a/show-branch.c
+++ b/show-branch.c
@@ -258,7 +258,7 @@ static void show_one_commit(struct commit *commit, int no_name)
char pretty[256], *cp;
struct commit_name *name = commit->object.util;
if (commit->object.parsed)
- pretty_print_commit(CMIT_FMT_ONELINE, commit->buffer, ~0,
+ pretty_print_commit(CMIT_FMT_ONELINE, commit, ~0,
pretty, sizeof(pretty), 0);
else
strcpy(pretty, "(unavailable)");