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

Re: Since when is a tag a commit?

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Aug 8, 2006, 03:28 UTC
Message-ID
<Pine.LNX.4.64.0608072325390.9789@iabervon.org>
In-Reply-To
<20060808021251.GA19548@spearce.org>
On Mon, 7 Aug 2006, Shawn Pearce wrote:
> What the heck is going on?  Since when did git cat-file happily
> consider a tag to be a tag, a commit and a tree?  Its that
> intentional that we're peeling back the object to the requested type?

I think it's done that for a long time now. All of the other commands that take a tree or a commit will accept a tag, so why shouldn't "git cat-file tree"?

	-Daniel
*This .sig left intentionally blank*
Previous: Shawn PearceNext: Jakub Narebski
Message 2 of 3 in “Since when is a tag a commit?”
  1. Shawn PearceAug 8, 2006
  2. Daniel BarkalowAug 8, 2006
  3. Jakub NarebskiAug 8, 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.