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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 4, 2009, 06:20 UTC
Message-ID
<7veirs6qxn.fsf@alter.siamese.dyndns.org>
In-Reply-To
<87ab2gsqst.fsf@jondo.cante.net>
Jari Aalto <jari.aalto@cante.net> writes:
> Explain briefly what characters are prohibited in tag <name>
> and point to git-check-ref-format(1) manual page for
> more information.
> ---
Thanks.

I do not see a reason to reject this patch (other than lack of sign-off), but at the same time, I wish if we can somehow teach people that the branches and the tags are just two special cases of refs that follow exactly the same set of rules, we would not have to apply another similar patch to git-branch documentation and instead we can teach what the naming rules are for refs in general. Then the readers can learn the rule once, and extend the knowledge to other types of refs (e.g. notes) in the future.

I however do not think of a way to organize our documentations without too many levels of indirections (e.g. repeating "X is just a ref and for naming rules, see check-ref-format(1)" for all types X of refs). Not repeating the rules for documentation of each kind of ref will make the maintenance a lot easier but hurts readability, but the set of rules is not a large enough to justify the complexity to use a separate include file at the source level.

Previous: Jari AaltoNext: Jari Aalto
Message 2 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.