Skip to content

Commit

Permalink
Merge branch 'tr/nth-previous-is-a-commit'
Browse files Browse the repository at this point in the history
* tr/nth-previous-is-a-commit:
  Documentation: @{-N} can refer to a commit
  • Loading branch information
gitster committed Jan 27, 2014
2 parents bf39399 + 75d6e55 commit c380cf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Documentation/git-checkout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ section of linkgit:git-add[1] to learn how to operate the `--patch` mode.
commit, your HEAD becomes "detached" and you are no longer on
any branch (see below for details).
+
As a special case, the `"@{-N}"` syntax for the N-th last branch
checks out the branch (instead of detaching). You may also specify
As a special case, the `"@{-N}"` syntax for the N-th last branch/commit
checks out branches (instead of detaching). You may also specify
`-` which is synonymous with `"@{-1}"`.
+
As a further special case, you may use `"A...B"` as a shortcut for the
Expand Down
2 changes: 1 addition & 1 deletion Documentation/revisions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ some output processing may assume ref names in UTF-8.
branch 'blabla' then '@\{1\}' means the same as 'blabla@\{1\}'.

'@\{-<n>\}', e.g. '@\{-1\}'::
The construct '@\{-<n>\}' means the <n>th branch checked out
The construct '@\{-<n>\}' means the <n>th branch/commit checked out
before the current one.

'<branchname>@\{upstream\}', e.g. 'master@\{upstream\}', '@\{u\}'::
Expand Down

0 comments on commit c380cf8

Please sign in to comment.