Re: [PATCH v3 4/6] for-each-ref: introduce %(upstream:track[short])

2013-11-16 Thread Eric Sunshine
On Fri, Nov 15, 2013 at 5:59 AM, Ramkumar Ramachandra artag...@gmail.com wrote: Introduce %(upstream:track) to display [ahead M, behind N] and %(upstream:trackshort) to display =, , , or appropriately (inspired by contrib/completion/git-prompt.sh). Now you can use the following format in

Re: [PATCH v3 4/6] for-each-ref: introduce %(upstream:track[short])

2013-11-16 Thread Ramkumar Ramachandra
Eric Sunshine wrote: The prompt is not mentioned elsewhere in for-each-ref documentation, and a person not familiar with contrib/completion/ may be confused by this reference. It might make sense instead to explain the meanings of , , , and = directly since they are not necessarily obvious to

[PATCH v3 4/6] for-each-ref: introduce %(upstream:track[short])

2013-11-15 Thread Ramkumar Ramachandra
Introduce %(upstream:track) to display [ahead M, behind N] and %(upstream:trackshort) to display =, , , or appropriately (inspired by contrib/completion/git-prompt.sh). Now you can use the following format in for-each-ref: %(refname:short)%(upstream:trackshort) to display refs with terse