From: Ramkumar Ramachandra Date: Tue, 28 May 2013 14:24:02 GMT Subject: Re: [PATCH v2 0/3] Towards a useable git-branch Message-ID: In-Reply-To: Oh, and by the way: We're pretty close we are to replacing branch -v and branch -vv. brv = for-each-ref --format='%(HEAD) %C(green)%<(*)%(refname:short)%C(reset) %<(*)%(objectname:short) %(subject)' refs/heads brvv = for-each-ref --format='%(HEAD) %C(green)%<(*)%(refname:short)%C(reset) %<(*)%(objectname:short) %C(blue)%(upstream:short)%C(reset) %(subject)' refs/heads There are small differences: 1. In branch -v, the green-color of the branch name is dependent on %(HEAD). Not worth ironing out, in my opinion. 2. In branch -vv, there are dependent square braces that come on when %(refname:short) is set. We might want to introduce an undocumented %(refname:branchvv) for internal use by branch -vv, for backward compatibility. What do you think?