aboutsummaryrefslogtreecommitdiffstats
path: root/reflog-walk.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-01-27 22:40:36 -0500
committerJunio C Hamano <junkio@cox.net>2007-01-28 01:54:42 -0800
commit903b45fe1808f72e712a118bf115b9dc07d02420 (patch)
tree5d0860beb6aa7d19487fe9c4bae5829e0b0d9131 /reflog-walk.c
parent16507fcf0a9991976815972faa253d77804d6f35 (diff)
downloadgit-903b45fe1808f72e712a118bf115b9dc07d02420.tar.gz
git-log -g --pretty=oneline should display the reflog message
In the context of reflog output the reflog message is more useful than the commit message's first line. When relevant the reflog message will contain that line anyway. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'reflog-walk.c')
-rw-r--r--reflog-walk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/reflog-walk.c b/reflog-walk.c
index 8e2cd2fcf6..82621601d6 100644
--- a/reflog-walk.c
+++ b/reflog-walk.c
@@ -233,7 +233,7 @@ void show_reflog_message(struct reflog_walk_info* info, int oneline)
else
printf("%d", commit_reflog->reflogs->nr
- 2 - commit_reflog->recno);
- printf("}: ");
+ printf("}: %s", info->message);
}
else {
printf("Reflog: %s@{", commit_reflog->reflogs->ref);