Re: Pretty format color bug

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

 



> I think I found a minor formatting bug when using the custom pretty format:
>
> * What did you do before the bug happened? (Steps to reproduce your issue)
> git log --pretty=format:'%h%Cred%+d test'
> [...]
> In case of ref names / a second line, the color is missing completely.

I think you've found a "bug" or unexpected feature, but it's not in git,
but in your pager.

Try:

    PAGER=cat git log --pretty=format:'%h%Cred%+d test'

I'm assuming you're using "less" and are about to read about its
behavior of resetting colors that are still in effect when it hits a
newline.

I hope that helps.



[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