File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 99--------
1010[verse]
1111'git check-ref-format' <refname>
12- 'git check-ref-format' [ --branch] <branchname-shorthand>
12+ 'git check-ref-format' --branch <branchname-shorthand>
1313
1414DESCRIPTION
1515-----------
@@ -63,8 +63,11 @@ reference name expressions (see linkgit:git-rev-parse[1]):
6363
6464. at-open-brace `@{` is used as a notation to access a reflog entry.
6565
66- With the `--branch` option, it expands a branch name shorthand and
67- prints the name of the branch the shorthand refers to.
66+ With the `--branch` option, it expands the ``previous branch syntax''
67+ `@{-n}`. For example, `@{-1}` is a way to refer the last branch you
68+ were on. This option should be used by porcelains to accept this
69+ syntax anywhere a branch name is expected, so they can act as if you
70+ typed the branch name.
6871
6972EXAMPLE
7073-------
You can’t perform that action at this time.
0 commit comments