diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-03-25 20:23:27 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-03-25 15:09:49 -0700 |
commit | 1b32decefd840e0ca5d18eefd6472fd8624dd849 (patch) | |
tree | 4faa70e96564653ee1c31dff5a1312bfb1110d2d /log-tree.c | |
parent | 208acbfb82f722fb22320c381e7da8c8fb2e37e8 (diff) | |
download | git-1b32decefd840e0ca5d18eefd6472fd8624dd849.tar.gz |
log: add --show-linear-break to help see non-linear historynd/log-show-linear-break
Option explanation is in rev-list-options.txt. The interaction with -z
is left undecided.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.c')
-rw-r--r-- | log-tree.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/log-tree.c b/log-tree.c index 08970bf46e..17862f6cfb 100644 --- a/log-tree.c +++ b/log-tree.c @@ -805,12 +805,16 @@ int log_tree_commit(struct rev_info *opt, struct commit *commit) if (opt->line_level_traverse) return line_log_print(opt, commit); + if (opt->track_linear && !opt->linear && !opt->reverse_output_stage) + printf("\n%s\n", opt->break_bar); shown = log_tree_diff(opt, commit, &log); if (!shown && opt->loginfo && opt->always_show_header) { log.parent = NULL; show_log(opt); shown = 1; } + if (opt->track_linear && !opt->linear && opt->reverse_output_stage) + printf("\n%s\n", opt->break_bar); opt->loginfo = NULL; maybe_flush_or_die(stdout, "stdout"); return shown; |