summaryrefslogtreecommitdiff
path: root/Documentation/.gitignore
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2009-04-07 03:09:39 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-04-07 23:22:15 -0700
commit8cae19d987b1bbd43258558f591e39d9d216dcb3 (patch)
tree79e914df66245e75991c066cd3b1c7b59274a88a /Documentation/.gitignore
parentfor-each-ref: refactor refname handling (diff)
downloadtgif-8cae19d987b1bbd43258558f591e39d9d216dcb3.tar.xz
for-each-ref: add "upstream" format field
The logic for determining the upstream ref of a branch is somewhat complex to perform in a shell script. This patch provides a plumbing mechanism for scripts to access the C logic used internally by git-status, git-branch, etc. For example: $ git for-each-ref \ --format='%(refname:short) %(upstream:short)' \ refs/heads/ master origin/master Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/.gitignore')
0 files changed, 0 insertions, 0 deletions