Skip to content

Commit 18b0793

Browse files
jaaltogitster
authored andcommitted
git-tag(1): Refer to git-check-ref-format(1) for <name>
Explain briefly what characters are prohibited in tag <name> and point to git-check-ref-format(1) manual page for further information. Signed-off-by: Jari Aalto <jari.aalto@cante.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 1a3d834 commit 18b0793

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/git-tag.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ SYNOPSIS
1717

1818
DESCRIPTION
1919
-----------
20-
Adds a 'tag' reference in `.git/refs/tags/`
20+
21+
Adds a 'tag' reference in `.git/refs/tags/`. The tag <name> must pass
22+
linkgit:git-check-ref-format[1] which basicly means that control characters,
23+
space, ~, ^, :, ?, *, [ and \ are prohibited.
2124

2225
Unless `-f` is given, the tag must not yet exist in
2326
`.git/refs/tags/` directory.

0 commit comments

Comments
 (0)