MINOR: log-format "%C" & "%+" log
- From
Hari Lubovac <hlubovac@gmail.com>
- Date
- Aug 22, 2018, 16:46 UTC
- Message-ID
- <CAFLu24kbCJu74tgfRDR=xPZ3pkbau9R6jmqPbFKR=ZnWOvbCvQ@mail.gmail.com>
Hi -
I don't know where else to report this. It relates to the "log" command with "--pretty:format" argument.
It appears to me that "%C" format argument combined with "%+" or "%-" results in no color applied.
For example, I'd expect the last part of the output line ("%+D") to be colored red (it does when the "+" is removed):
git log --pretty="format:%C(Yellow)%t %C(reset)%ad %C(Cyan)%<(6,trunc)%an %C(reset)%s %C(Red)%+D" --date="format:%m/%d"
This info is taken from https://git-scm.com/docs/pretty-formats: "If you add a + (plus sign) after '%' of a placeholder..."
Thanks, Hari