aboutsummaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-01-11 11:47:48 +0100
committerJunio C Hamano <junkio@cox.net>2007-01-20 21:32:31 -0800
commit8860fd42fcf5a7853f7d7c2198793183320293ff (patch)
tree24b6d67b95ef9efe285a4cb1f71d77edc5ef1834 /log-tree.c
parentbcf316187699c5e97bf47c1b8a00c844bf809fbc (diff)
downloadgit-8860fd42fcf5a7853f7d7c2198793183320293ff.tar.gz
git-8860fd42fcf5a7853f7d7c2198793183320293ff.tar.xz
Teach the revision walker to walk by reflogs with --walk-reflogs
When called with "--walk-reflogs", as long as there are reflogs available, the walker will take this information into account, rather than the parent information in the commit object. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/log-tree.c b/log-tree.c
index 35be33aaf..f043ad372 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -2,6 +2,7 @@
#include "diff.h"
#include "commit.h"
#include "log-tree.h"
+#include "reflog-walk.h"
static void show_parents(struct commit *commit, int abbrev)
{
@@ -223,6 +224,8 @@ void show_log(struct rev_info *opt, const char *sep)
printf("%s",
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);
}
/*