summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-20 00:51:41 -0800
committerJunio C Hamano <junkio@cox.net>2007-01-20 21:32:31 -0800
commit4d12a471230625da73be464f5a20b7480a6b8ecb (patch)
tree1a9a11d53059bdae1d114b5ca1b2747a767b06a1 /log-tree.c
parent53645a3a62977d5efd96ca9f3654985802212a9d (diff)
downloadgit-4d12a471230625da73be464f5a20b7480a6b8ecb.tar.gz
Fix --walk-reflog with --pretty=oneline
Now, "git log --abbrev-commit --pretty=o --walk-reflogs HEAD" is reasonably pleasant to use. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/log-tree.c b/log-tree.c
index f043ad3723..c0fa096327 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -225,7 +225,8 @@ void show_log(struct rev_info *opt, const char *sep)
diff_get_color(opt->diffopt.color_diff, DIFF_RESET));
putchar(opt->commit_format == CMIT_FMT_ONELINE ? ' ' : '\n');
if (opt->reflog_info)
- show_reflog_message(opt->reflog_info);
+ show_reflog_message(opt->reflog_info,
+ opt->commit_format == CMIT_FMT_ONELINE);;
}
/*