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

Tags of non-commits

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Aug 24, 2007, 18:11 UTC
Message-ID
<Pine.LNX.4.64.0708241337560.5774@iabervon.org>

There seems to be an inconsistency between the fetch and tag over whether lightweight tags of non-commits are allowed. Fetch doesn't like them, but tag creates them without any particular fuss. I think that fetch is right that, if you want to tag a blob, you should use a real tag object so that there's something that indicates (correctly) the type of the tagged object. Should git-tag perhaps automatically make a tag object if the tagged object isn't a commit, acting as if -a was given, except that an empty message is used instead of invoking an editor if -m is not given? (I can, of course, just use git-tag that way, but it seems generally unfriendly to by able to get "error:" out of a sequence of purely git commands, even if they're sort of odd and probably not what you really wanted to do.

	-Daniel
*This .sig left intentionally blank*
Next: Junio C Hamano
Message 1 of 4 in “Tags of non-commits”
  1. Daniel BarkalowAug 24, 2007
  2. Junio C HamanoAug 24, 2007
  3. Daniel BarkalowAug 24, 2007
  4. Junio C HamanoAug 24, 2007

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.