Re: [PATCH 12/15] for-each-ref: introduce %(upstream:track[short])
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Jun 4, 2013, 21:14 UTC
- Message-ID
- <CAPig+cRsDWSsC+K0SN9x06LmBOGi02SLPMLC5jgONuSU_8-Dfg@mail.gmail.com>
- In-Reply-To
- <1370349337-20938-13-git-send-email-artagnon@gmail.com>
On Tue, Jun 4, 2013 at 8:35 AM, Ramkumar Ramachandra <artagnon@gmail.com> 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?
Show 7 quoted lines
> 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 <artagnon@gmail.com>