Re: [PATCH 2/3] for-each-ref: introduce %(HEAD) marker

2013-05-24 Thread Philip Oakley
From: "Ramkumar Ramachandra" Sent: Friday, May 24, 2013 3:19 PM 'git branch' shows which branch you are currently on with an '*', but 'git for-each-ref' misses this feature. So, extend the format with %(HEAD) to do exactly the same thing. Maybe 'isHEAD' as a better name, or 'ifHEAD', or some

[PATCH 2/3] for-each-ref: introduce %(HEAD) marker

2013-05-24 Thread Ramkumar Ramachandra
'git branch' shows which branch you are currently on with an '*', but 'git for-each-ref' misses this feature. So, extend the format with %(HEAD) to do exactly the same thing. Now you can use the following format in for-each-ref: %C(red)%(HEAD)%C(reset) %C(green)%(refname:short)%C(reset) to di