Skip to content

Commit

Permalink
Merge branch 'jn/maint-1.6.3-check-ref-format-doc' into maint
Browse files Browse the repository at this point in the history
* jn/maint-1.6.3-check-ref-format-doc:
  Documentation: describe check-ref-format --branch
  • Loading branch information
gitster committed Oct 24, 2009
2 parents 70ed433 + 604e0cb commit 64fb90b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Documentation/git-check-ref-format.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ SYNOPSIS
--------
[verse]
'git check-ref-format' <refname>
'git check-ref-format' [--branch] <branchname-shorthand>
'git check-ref-format' --branch <branchname-shorthand>

DESCRIPTION
-----------
Expand Down Expand Up @@ -63,8 +63,11 @@ reference name expressions (see linkgit:git-rev-parse[1]):

. at-open-brace `@{` is used as a notation to access a reflog entry.

With the `--branch` option, it expands a branch name shorthand and
prints the name of the branch the shorthand refers to.
With the `--branch` option, it expands the ``previous branch syntax''
`@{-n}`. For example, `@{-1}` is a way to refer the last branch you
were on. This option should be used by porcelains to accept this
syntax anywhere a branch name is expected, so they can act as if you
typed the branch name.

EXAMPLE
-------
Expand Down

0 comments on commit 64fb90b

Please sign in to comment.