diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-20 12:27:18 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-20 12:27:18 -0700 |
commit | 638924fec2189f3f20ebf5d0ff4cc34ee551dd39 (patch) | |
tree | 3a7b24c2855c88f95885e5fc5f6bfd372d72097d /Documentation/revisions.txt | |
parent | 2e6e3e82ee36b3e1bec1db8db24817270080424e (diff) | |
parent | c969b6a18d1cde3ffb8a5ca5cd45a57052c2cc95 (diff) | |
download | git-638924fec2189f3f20ebf5d0ff4cc34ee551dd39.tar.gz |
Merge branch 'rh/peeling-tag-to-tag'
Make "foo^{tag}" to peel a tag to itself, i.e. no-op., and fail if
"foo" is not a tag. "git rev-parse --verify v1.0^{tag}" would be a
more convenient way to say "test $(git cat-file -t v1.0) = tag".
* rh/peeling-tag-to-tag:
peel_onion: do not assume length of x_type globals
peel_onion(): add support for <rev>^{tag}
Diffstat (limited to 'Documentation/revisions.txt')
-rw-r--r-- | Documentation/revisions.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/revisions.txt b/Documentation/revisions.txt index b0f4284cfb..71dcd12ebd 100644 --- a/Documentation/revisions.txt +++ b/Documentation/revisions.txt @@ -125,6 +125,9 @@ some output processing may assume ref names in UTF-8. object that exists, without requiring 'rev' to be a tag, and without dereferencing 'rev'; because a tag is already an object, it does not have to be dereferenced even once to get to an object. ++ +'rev{caret}\{tag\}' can be used to ensure that 'rev' identifies an +existing tag object. '<rev>{caret}\{\}', e.g. 'v0.99.8{caret}\{\}':: A suffix '{caret}' followed by an empty brace pair |