diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-01-29 23:47:56 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-29 23:47:57 +0300 |
commit | a562a119833b7202d5c9b9069d1abb40c1f9b59a (patch) | |
tree | 9e2e07ce274b0a5a070d837c865f6844b1dc0de8 /builtin | |
parent | 7fa92ba40abbe4236226e7d91e664bbeab8c43f2 (diff) | |
parent | ad6f028f067673cadadbc2219fcb0bb864300a6c (diff) |
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; } |