MINOR: log-format "%C" & "%+" log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux