From: Eric Sunshine Date: Tue, 04 Jun 2013 21:14:19 GMT Subject: Re: [PATCH 12/15] for-each-ref: introduce %(upstream:track[short]) Message-ID: In-Reply-To: <1370349337-20938-13-git-send-email-artagnon@gmail.com> On Tue, Jun 4, 2013 at 8:35 AM, Ramkumar Ramachandra wrote: > Introduce %(upstream:track) to display "[ahead M, behind N]" and > %(upstream:trackshort) to display "=", ">", "<", or "<>" > appropriately (inspired by the contrib/completion/git-prompt.sh). Bikeshedding: s/trackshort/trackbrief/ perhaps? > Now you can use the following format in for-each-ref: > > %C(green)%(refname:short)%C(reset)%(upstream:trackshort) > > to display refs with terse tracking information. > > Note that :track and :trackshort only works with upstream, and errors s/works/work/ s/errors/error/ > out when used with anything else. > > Signed-off-by: Ramkumar Ramachandra