Skip to content

Commit 87a56cd

Browse files
spearceJunio C Hamano
authored andcommitted
Elaborate on why ':' is a bad idea in a ref name.
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>
1 parent 2b1f424 commit 87a56cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Documentation/git-check-ref-format.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ refname expressions (see gitlink:git-rev-parse[1]). Namely:
4545

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

4951

5052
GIT

0 commit comments

Comments
 (0)