[PATCH v2 2/3] for-each-ref: introduce %(upstream:track[short])

2013-11-13 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

Re: [PATCH v2 2/3] for-each-ref: introduce %(upstream:track[short])

2013-11-13 Thread Junio C Hamano
You need to squash 78465bb, which has been queued on the previous round, in to this step. There also is a similar issue introduced by the updated 3/3: builtin/for-each-ref.c: In function 'populate_value': builtin/for-each-ref.c:701:13: error: 'refname' may be used uninitialized in this function

Re: [PATCH v2 2/3] for-each-ref: introduce %(upstream:track[short])

2013-11-13 Thread Junio C Hamano
Junio C Hamano gits...@pobox.com writes: You need to squash 78465bb,... oops; make it 2249926. 784 is a cherry-pick of it on top of this round. -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH v2 2/3] for-each-ref: introduce %(upstream:track[short])

2013-11-13 Thread Ramkumar Ramachandra
Junio C Hamano wrote: builtin/for-each-ref.c: In function 'populate_value': builtin/for-each-ref.c:701:13: error: 'refname' may be used uninitialized in this function [-Werror=uninitialized] In my defense, the gcc on my end (4.8.2) doesn't seem to complain. Are you using extra cflags?