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

Re: [PATCH] git-fetch --tags: deal with tags with spaces in them.

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Oct 12, 2005, 15:47 UTC
Message-ID
<434D3000.5020601@zytor.com>
In-Reply-To
<434D2D8F.2020407@zytor.com>
H. Peter Anvin wrote:
Show 5 quoted lines
> 
> We can disallow whitespace, and we *have* to disallow at least newline 
> due to the file format; I believe we should disallow all control 
> characters (0-31, 127-159.)
> 

Actually, disallowing anything 128 and above means knowing the encoding system. If we enforce UTF-8, we should presumably disallow at the very least U+FFFE and U+FFFF too.

C99 contains a list of Unicode characters allowed in C identifiers. I believe we should allow those characters (plus at a minimum -+.#:@) as well, but I'd much rather we didn't make those kinds of decisions for the user. If we have *specific* characters we can't tolerate we should rule them out (like control characters), but even that occationally leads to major frustration on the part of the user: "why can't I use '.' in tag names in CVS"?

	-hpa
Previous: H. Peter AnvinNext: Junio C Hamano
Message 14 of 21 in “Strangely broken git repo”
  1. Martin Langhoff (CatalystIT)Oct 10, 2005
  2. Junio C HamanoOct 10, 2005
  3. Linus TorvaldsOct 10, 2005
  4. Linus TorvaldsOct 10, 2005
  5. Morten WelinderOct 10, 2005
  6. Linus TorvaldsOct 10, 2005
  7. Johannes SchindelinOct 10, 2005
  8. Quote reference names while fetching with curl.Junio C Hamano, Oct 11, 2005
  9. git-fetch --tags: deal with tags with spaces in them.Junio C Hamano, Oct 11, 2005
  10. Junio C HamanoOct 11, 2005
  11. Junio C HamanoOct 12, 2005
  12. Petr BaudisOct 12, 2005
  13. H. Peter AnvinOct 12, 2005
  14. H. Peter AnvinOct 12, 2005
  15. Junio C HamanoOct 12, 2005
  16. Junio C HamanoOct 12, 2005
  17. git-check-ref-format: reject funny ref names.Junio C Hamano, Oct 12, 2005
  18. Refuse to create funny refs in clone-pack, git-fetch and receive-pack.Junio C Hamano, Oct 12, 2005
  19. Matthias UrlichsOct 11, 2005
  20. Nick HengeveldOct 12, 2005
  21. Junio C HamanoOct 12, 2005

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.