Documentation: @{-N} can refer to a commit

The @{-N} syntax always referred to the N-th last thing checked out, which can be either a branch or a commit (for detached HEAD cases). However, the documentation only mentioned branches. Edit in a "/commit" in the appropriate places. Reported-by: Kevin <ikke@ikke.info> Signed-off-by: Thomas Rast <tr@thomasrast.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Thomas Rast committed Jan 19, 2014 at 08:01 UTC 75d6e552a8f289fb0ee606a7bdfceace6df93bb3
2 files changed +3 -3
Documentation/git-checkout.txt
+2 -2
@@ -232,8 +232,8 @@ section of linkgit:git-add[1] to learn how to operate the `--patch` mode.
232 commit, your HEAD becomes "detached" and you are no longer on
233 any branch (see below for details).
234 +
235 -As a special case, the `"@{-N}"` syntax for the N-th last branch
236 -checks out the branch (instead of detaching). You may also specify
235 +As a special case, the `"@{-N}"` syntax for the N-th last branch/commit
236 +checks out branches (instead of detaching). You may also specify
237 `-` which is synonymous with `"@{-1}"`.
238 +
239 As a further special case, you may use `"A...B"` as a shortcut for the
Documentation/revisions.txt
+1 -1
@@ -88,7 +88,7 @@ some output processing may assume ref names in UTF-8.
88 branch 'blabla' then '@\{1\}' means the same as 'blabla@\{1\}'.
89
90 '@\{-<n>\}', e.g. '@\{-1\}'::
91 - The construct '@\{-<n>\}' means the <n>th branch checked out
91 + The construct '@\{-<n>\}' means the <n>th branch/commit checked out
92 before the current one.
93
94 '<branchname>@\{upstream\}', e.g. 'master@\{upstream\}', '@\{u\}'::