Skip to content

Commit 1a28725

Browse files
Michael J Grubergitster
authored andcommitted
Documentation: clarify / requirement in 'git check-ref-format'
'git check-ref-format' checks for the presence of at least one '/', the idea being that there should be no refs directly below 'refs/', so there should be a category like 'heads/' or 'tags/' in a refname. Try and make this clearer in the man page. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 0065236 commit 1a28725

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/git-check-ref-format.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ imposes the following rules on how references are named:
2525
grouping, but no slash-separated component can begin with a
2626
dot `.`.
2727

28+
. They must contain at least one `/`. This enforces the presence of a
29+
category like `heads/`, `tags/` etc. but the actual names are not
30+
restricted.
31+
2832
. They cannot have two consecutive dots `..` anywhere.
2933

3034
. They cannot have ASCII control characters (i.e. bytes whose

0 commit comments

Comments
 (0)