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

Re: diff against a tag ?

From
Junio C Hamano <junkio@cox.net>
Date
Apr 28, 2005, 21:28 UTC
Message-ID
<7vwtqm616h.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.58.0504281358060.18901@ppc970.osdl.org>
>>>>> "LT" == Linus Torvalds <torvalds@osdl.org> writes:

LT> Right now fsck is the only thing that reports tags that aren't referenced LT> some other way. Once you know the tag, things are easy - even without LT> Junio's patch you can just do LT> object=$(cat-file tag $tag | sed 's/object //;q') LT> and then you can just do LT> diff-tree $object $(cat .git/HEAD) LT> or whatever you want to do.

Of course you are right. The patch is about skipping the first step and requiring you to know what you have is a tag not a commit.

LT> Dave: do a "fsck --tags" in your tree, and it will talk about the tags it LT> finds. Then you can create files like .git/refs/tags/v2.6.12-rc2 that LT> contain pointers to those tags..

Arrrrrrrrrgh! I just did "fsck --tags" blindly X-<. Good thing I was not root.

Of course you meant "fsck-cache --tags" ;-).
Previous: Linus TorvaldsNext: Dave Jones
Message 4 of 9 in “diff against a tag ?”
  1. Dave JonesApr 28, 2005
  2. Junio C HamanoApr 28, 2005
  3. Linus TorvaldsApr 28, 2005
  4. Junio C HamanoApr 28, 2005
  5. Dave JonesApr 28, 2005
  6. Linus TorvaldsApr 28, 2005
  7. Dave JonesApr 28, 2005
  8. Morten WelinderApr 28, 2005
  9. Linus TorvaldsApr 28, 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.