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

Re: git tag: don't complain of empty messages

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 15, 2006, 16:02 UTC
Message-ID
<Pine.LNX.4.63.0611151657570.13772@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<ejfc1t$6am$1@sea.gmane.org>
Hi,
On Wed, 15 Nov 2006, Han-Wen Nienhuys wrote:
> GIT refuses to set annotated tags without a comment. I think this is a silly
> restriction when the message is explicitly set to the empty string.

I think that this behaviour is on purpose: The tag will be identified (like all objects in git) by its contents. The rationale: the filename does not matter, since the tag _object_ is not identified by it. So, in case you lose your .git/refs/tags/ directory, you can still reconstruct the tags with "git-fsck-objects --full".

Ciao, Dscho

Previous: Han-Wen NienhuysNext: Han-Wen Nienhuys
Message 2 of 10 in “git tag: don't complain of empty messages”
  1. Han-Wen NienhuysNov 15, 2006
  2. Johannes SchindelinNov 15, 2006
  3. Han-Wen NienhuysNov 15, 2006
  4. Johannes SchindelinNov 15, 2006
  5. Junio C HamanoNov 15, 2006
  6. Han-Wen NienhuysNov 16, 2006
  7. Jakub NarebskiNov 16, 2006
  8. Han-Wen NienhuysNov 16, 2006
  9. Han-Wen NienhuysNov 26, 2006
  10. Han-Wen NienhuysNov 26, 2006

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.