]> Pileus Git - ~andy/git/blobdiff - log-tree.c
Teach the revision walker to walk by reflogs with --walk-reflogs
[~andy/git] / log-tree.c
index 35be33aaf73e0b53cb9ece09bba5f1e12de4b99d..f043ad3723eef60f4e3d7a7a95ba19c89d0bcebf 100644 (file)
@@ -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);
        }
 
        /*