From fddb74c94777351d549b2ddaa36612c41b2176f1 Mon Sep 17 00:00:00 2001 From: Ramkumar Ramachandra Date: Mon, 18 Nov 2013 23:09:12 +0530 Subject: for-each-ref: introduce %(color:...) for color Enhance 'git for-each-ref' with color formatting options. You can now use the following format in for-each-ref: %(color:green)%(refname:short)%(color:reset) where color names are described in color.branch.*. Signed-off-by: Ramkumar Ramachandra Signed-off-by: Junio C Hamano --- Documentation/git-for-each-ref.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Documentation') diff --git a/Documentation/git-for-each-ref.txt b/Documentation/git-for-each-ref.txt index 92e82fdb0..94f5c465d 100644 --- a/Documentation/git-for-each-ref.txt +++ b/Documentation/git-for-each-ref.txt @@ -101,6 +101,10 @@ HEAD:: '*' if HEAD matches current ref (the checked out branch), ' ' otherwise. +color:: + Change output color. Followed by `:`, where names + are described in `color.branch.*`. + In addition to the above, for commit and tag objects, the header field names (`tree`, `parent`, `object`, `type`, and `tag`) can be used to specify the value in the header field. -- cgit v1.2.1