diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-01-29 12:47:56 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-29 12:47:57 -0800 |
commit | a562a119833b7202d5c9b9069d1abb40c1f9b59a (patch) | |
tree | 9e2e07ce274b0a5a070d837c865f6844b1dc0de8 /builtin | |
parent | Merge branch 'js/add-e-clear-patch-before-stating' (diff) | |
parent | log: add %S option (like --source) to log --format (diff) | |
download | tgif-a562a119833b7202d5c9b9069d1abb40c1f9b59a.tar.xz |
Merge branch 'it/log-format-source'
Custom userformat "log --format" learned %S atom that stands for
the tip the traversal reached the commit from, i.e. --source.
* it/log-format-source:
log: add %S option (like --source) to log --format
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/log.c b/builtin/log.c index 3e145fe502..a479642eb9 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -203,7 +203,7 @@ static void cmd_log_init_finish(int argc, const char **argv, const char *prefix, rev->diffopt.filter || rev->diffopt.flags.follow_renames) rev->always_show_header = 0; - if (source) { + if (source || w.source) { init_revision_sources(&revision_sources); rev->sources = &revision_sources; } |