]> asedeno.scripts.mit.edu Git - git.git/blobdiff - Documentation/git-for-each-ref.txt
Merge branch 'maint-1.6.2' into maint-1.6.3
[git.git] / Documentation / git-for-each-ref.txt
index ebd7c5fbb34576fd2af98b00d9045340ff77ee2b..8dc873fd4465879ec3224732c690f1173a6e2dc2 100644 (file)
@@ -74,6 +74,9 @@ For all objects, the following names can be used:
 
 refname::
        The name of the ref (the part after $GIT_DIR/).
+       For a non-ambiguous short name of the ref append `:short`.
+       The option core.warnAmbiguousRefs is used to select the strict
+       abbreviation mode.
 
 objecttype::
        The type of the object (`blob`, `tree`, `commit`, `tag`).
@@ -84,6 +87,11 @@ objectsize::
 objectname::
        The object name (aka SHA-1).
 
+upstream::
+       The name of a local ref which can be considered ``upstream''
+       from the displayed ref. Respects `:short` in the same way as
+       `refname` above.
+
 In addition to the above, for commit and tag objects, the header
 field names (`tree`, `parent`, `object`, `type`, and `tag`) can
 be used to specify the value in the header field.