Re: [PATCH] for-each-ref: introduce color format

2013-05-19 Thread Duy Nguyen
On Fri, May 17, 2013 at 9:55 PM, Ramkumar Ramachandra wrote: > You can now do something like > > $ git for-each-ref --format='%C(red)%(refname:short)%C(reset) > %C(blue)%(upstream:diff)%C(reset)' --count 5 --sort='-committerdate' > refs/heads > > To get output that's much more customizable 'git br

Re: [PATCH] for-each-ref: introduce color format

2013-05-17 Thread Ramkumar Ramachandra
Junio C Hamano wrote: > Doesn't Duy's more recent work on the pretty-format front introduce > alignment operators? Oh, awesome. I know where to steal that from now ;) -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More major

Re: [PATCH] for-each-ref: introduce color format

2013-05-17 Thread Junio C Hamano
Ramkumar Ramachandra writes: > I just have one major doubt: in the above output, how do I align all > the upstream branches to the same column? How can I achieve it with > pretty-formats? Something like %*d? But * is already taken to mean > deref in for-each-ref's --format. Doesn't Duy's