summaryrefslogtreecommitdiff
path: root/Documentation/git-checkout.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-01-27 18:45:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-01-27 18:45:31 (GMT)
commitc380cf85a79c78d9dceb9290c9d4017d30804521 (patch)
tree642001713f918aaa60fdc264994ae7a344a5b4bb /Documentation/git-checkout.txt
parentbf3939901bd18f9d22f1b54323d2dd8032ec8051 (diff)
parent75d6e552a8f289fb0ee606a7bdfceace6df93bb3 (diff)
downloadgit-c380cf85a79c78d9dceb9290c9d4017d30804521.zip
git-c380cf85a79c78d9dceb9290c9d4017d30804521.tar.gz
git-c380cf85a79c78d9dceb9290c9d4017d30804521.tar.bz2
Merge branch 'tr/nth-previous-is-a-commit'
* tr/nth-previous-is-a-commit: Documentation: @{-N} can refer to a commit
Diffstat (limited to 'Documentation/git-checkout.txt')
-rw-r--r--Documentation/git-checkout.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt
index 91294f8..33ad2ad 100644
--- a/Documentation/git-checkout.txt
+++ b/Documentation/git-checkout.txt
@@ -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