Thread (28 messages) flat view 28 messages, 7 authors, 2016-06-15

Re: [PATCH 1/3] for-each-ref: introduce %C(...) for color

From: David Aguilar <hidden>
Date: 2016-06-15 22:57:26

On Fri, May 24, 2013 at 7:19 AM, Ramkumar Ramachandra
[off-list ref] wrote:
Since 'git branch' misses important options like --sort, --count, and
--format that are present in 'git for-each-ref'.  Until we are in a
position to fix 'git branch', let us enhance the 'git for-each-ref'
format so it can atleast colorize output.

You can use the following format in for-each-ref:

  %C(green)%(refname:short)%C(reset)

To display refs in green.  Future patches will attempt to extend the
format even more to get useful output.

Signed-off-by: Ramkumar Ramachandra <redacted>
---
 builtin/for-each-ref.c | 26 ++++++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)
Can you please also update Documentation/?
--
David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help