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, 20:42 UTC
Message-ID
<7vpswe7hvj.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050428200953.GD8514@redhat.com>
>>>>> "DJ" == Dave Jones <davej@redhat.com> writes:

DJ> Maybe I missed this in the discussion on tags recently DJ> (I kinda tuned out after a while on that thread).

DJ> Is there an easy way to express 'show me the diff DJ> between HEAD and 2.6.12rc3' today ?

Depends on your definition of today, but with the patch below I sent today, you can say "diff-tree -p $tag $(cat .git/HEAD)".

    Subject: [PATCH] Rename and extend read_tree_with_tree_or_commit_sha1
    Date:	Thu, 28 Apr 2005 12:15:43 -0700
    Message-ID: <7vu0lq7lwg.fsf@assigned-by-dhcp.cox.net>
    This patch renames read_tree_with_tree_or_commit_sha1() to
    read_object_with_reference() and extends it to automatically
    dereference not just "commit" objects but "tag" objects.  With
    this patch, you can say e.g.:
        ls-tree $tag
        read-tree -m $(merge-base $tag $HEAD) $tag $HEAD
        diff-cache $tag
        diff-tree $tag $HEAD
Previous: Dave JonesNext: Linus Torvalds
Message 2 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.