Skip to content

Commit 1e5db30

Browse files
dschoJunio C Hamano
authored andcommitted
Update the documentation for the new '@{...}' syntax
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent d271fd5 commit 1e5db30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/git-rev-parse.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ blobs contained in a commit.
160160
immediately following a ref name and the ref must have an existing
161161
log ($GIT_DIR/logs/<ref>).
162162

163+
* You can use the '@' construct with an empty ref part to get at a
164+
reflog of the current branch. For example, if you are on the
165+
branch 'blabla', then '@\{1\}' means the same as 'blabla@\{1\}'.
166+
163167
* A suffix '{caret}' to a revision parameter means the first parent of
164168
that commit object. '{caret}<n>' means the <n>th parent (i.e.
165169
'rev{caret}'

0 commit comments

Comments
 (0)