summaryrefslogtreecommitdiff
path: root/builtin/log.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-01-29 20:47:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-29 20:47:57 (GMT)
commita562a119833b7202d5c9b9069d1abb40c1f9b59a (patch)
tree9e2e07ce274b0a5a070d837c865f6844b1dc0de8 /builtin/log.c
parent7fa92ba40abbe4236226e7d91e664bbeab8c43f2 (diff)
parentad6f028f067673cadadbc2219fcb0bb864300a6c (diff)
downloadgit-a562a119833b7202d5c9b9069d1abb40c1f9b59a.zip
git-a562a119833b7202d5c9b9069d1abb40c1f9b59a.tar.gz
git-a562a119833b7202d5c9b9069d1abb40c1f9b59a.tar.bz2
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/log.c')
-rw-r--r--builtin/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/log.c b/builtin/log.c
index 3e145fe..a479642 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;
}