Re: Show all branches and ahead/behind states

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

 



On Thu, May 14, 2015 at 01:13:15PM -0500, Robert Dailey wrote:

> > git for-each-ref --format '%(HEAD) %(refname:short) %(upstream:short) %(upstream:track) %(subject)' refs/heads
> 
> Great idea. For some reason I can't apply coloring though:
> 
> for-each-ref --format '%(HEAD) %(refname:short) %C(bold
> blue)%(upstream:track)%C(reset)' refs/heads
> 
> Output:
> 
> hotfix/4.2.3.1 %C(bold blue)[ahead 1, behind 1]%C(reset)

It's spelled "%C(bold blue)" in the --pretty formats, but in
for-each-ref, it's "%(color:bold blue)". Unifying these is one of those
things that has been on the radar for a long time, but nobody has quite
gotten around to it.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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]