for-each-ref: accept "%(push)" format
commit29bc88505f22068d7ee6694240e6b13fddb5d059
authorJeff King <peff@peff.net>
Thu, 21 May 2015 04:45:55 +0000 (21 00:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 May 2015 16:33:09 +0000 (22 09:33 -0700)
treea55a77a4756632a07aa634bc1c1ce7a8f79fb256
parent3dbe9db01bd9c0b0701f72a631ac15b1791f6642
for-each-ref: accept "%(push)" format

Just as we have "%(upstream)" to report the "@{upstream}"
for each ref, this patch adds "%(push)" to match "@{push}".
It supports the same tracking format modifiers as upstream
(because you may want to know, for example, which branches
have commits to push).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-for-each-ref.txt
builtin/for-each-ref.c
t/t6300-for-each-ref.sh