Skip to content

Commit

Permalink
Elaborate on why ':' is a bad idea in a ref name.
Browse files Browse the repository at this point in the history
With the new cat-file syntax of 'v1.3.3:refs.c' we should mention
it as part of the reason why ':' is not permitted in a ref name.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Shawn Pearce authored and Junio C Hamano committed May 21, 2006
1 parent 2b1f424 commit 87a56cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Documentation/git-check-ref-format.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ refname expressions (see gitlink:git-rev-parse[1]). Namely:

. colon `:` is used as in `srcref:dstref` to mean "use srcref\'s
value and store it in dstref" in fetch and push operations.
It may also be used to select a specific object such as with
gitlink:git-cat-file[1] "git-cat-file blob v1.3.3:refs.c".


GIT
Expand Down

0 comments on commit 87a56cd

Please sign in to comment.