diff options
author | Issac Trotts <issactrotts@google.com> | 2019-01-11 07:30:46 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-11 19:28:11 +0100 |
commit | ad6f028f067673cadadbc2219fcb0bb864300a6c (patch) | |
tree | a96a40f373ac72a0a3ea7abe19e32e32b470988f /pretty.h | |
parent | First batch after 2.20.1 (diff) | |
download | git-ad6f028f067673cadadbc2219fcb0bb864300a6c.tar.xz git-ad6f028f067673cadadbc2219fcb0bb864300a6c.zip |
log: add %S option (like --source) to log --format
Make it possible to write for example
git log --format="%H,%S"
where the %S at the end is a new placeholder that prints out the ref
(tag/branch) for each commit.
Using %d might seem like an alternative but it only shows the ref for the last
commit in the branch.
Signed-off-by: Issac Trotts <issactrotts@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pretty.h')
-rw-r--r-- | pretty.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -60,6 +60,7 @@ static inline int cmit_fmt_is_mail(enum cmit_fmt fmt) struct userformat_want { unsigned notes:1; + unsigned source:1; }; /* Set the flag "w->notes" if there is placeholder %N in "fmt". */ |