From: Shawn Pearce Date: Sun, 21 May 2006 01:54:46 +0000 (-0400) Subject: Reference git-check-ref-format in git-branch. X-Git-Tag: v1.4.0-rc1~109 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2b1f4247ab5881cfde1d35ca3e3c48b7de8f449c;p=git.git Reference git-check-ref-format in git-branch. Its nice to have git-check-ref-format actually get mentioned in git-branch's documentation as the syntax of a ref name must conform to what is described in git-check-ref-format. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt index 72fb2f89b..0b37e2bfc 100644 --- a/Documentation/git-branch.txt +++ b/Documentation/git-branch.txt @@ -43,6 +43,9 @@ OPTIONS :: The name of the branch to create or delete. + The new branch name must pass all checks defined by + gitlink:git-check-ref-format[1]. Some of these checks + may restrict the characters allowed in a branch name. :: The new branch will be created with a HEAD equal to this. It may diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index 095128906..d82efc00d 100644 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@ -35,7 +35,10 @@ OPTIONS Force a re-read of everything. -b:: - Create a new branch and start it at . + Create a new branch named and start it at + . The new branch name must pass all checks defined + by gitlink:git-check-ref-format[1]. Some of these checks + may restrict the characters allowed in a branch name. -m:: If you have local modifications to one or more files that