git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-tag(1): Refer to git-check-ref-format(1) for <name>

From
Jari Aalto <jari.aalto@cante.net>
Date
Aug 5, 2009, 21:20 UTC
Message-ID
<8763d2klen.fsf@jondo.cante.net>
In-Reply-To
<7veirs6qxn.fsf@alter.siamese.dyndns.org>

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>
---
 Documentation/git-tag.txt |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt
index fa73321..1118ce2 100644
--- a/Documentation/git-tag.txt
+++ b/Documentation/git-tag.txt
@@ -17,7 +17,10 @@ SYNOPSIS
 
 DESCRIPTION
 -----------
-Adds a 'tag' reference in `.git/refs/tags/`
+
+Adds a 'tag' reference in `.git/refs/tags/`.  The tag <name> must pass
+linkgit:git-check-ref-format[1] which basicly means that control characters,
+space, ~, ^, :, ?, *, [ and \ are prohibited.
 
 Unless `-f` is given, the tag must not yet exist in
 `.git/refs/tags/` directory.
-- 
1.6.3.3
Previous: Junio C HamanoNext: Nanako Shiraishi
Message 3 of 6 in “git-tag(1): Refer to git-check-ref-format(1) for <name>”
  1. git-tag(1): Refer to git-check-ref-format(1) for <name>Jari Aalto, Aug 3, 2009
  2. Junio C HamanoAug 4, 2009
  3. git-tag(1): Refer to git-check-ref-format(1) for <name>Jari Aalto, Aug 5, 2009
  4. Nanako ShiraishiAug 22, 2009
  5. Nanako ShiraishiAug 25, 2009
  6. Junio C HamanoAug 25, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.