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 9
9
--------
10
10
[verse]
11
11
'git check-ref-format' <refname>
12
- 'git check-ref-format' [ --branch] <branchname-shorthand>
12
+ 'git check-ref-format' --branch <branchname-shorthand>
13
13
14
14
DESCRIPTION
15
15
-----------
@@ -63,8 +63,11 @@ reference name expressions (see linkgit:git-rev-parse[1]):
63
63
64
64
. at-open-brace `@{` is used as a notation to access a reflog entry.
65
65
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.
68
71
69
72
EXAMPLE
70
73
-------
You can’t perform that action at this time.
0 commit comments