From: Junio C Hamano <junkio@cox.net>
To: Dave Jones <davej@redhat.com>
Cc: git@vger.kernel.org
Subject: Re: diff against a tag ?
Date: Thu, 28 Apr 2005 13:42:40 -0700 [thread overview]
Message-ID: <7vpswe7hvj.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <20050428200953.GD8514@redhat.com> (Dave Jones's message of "Thu, 28 Apr 2005 16:09:53 -0400")
>>>>> "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
next prev parent reply other threads:[~2005-04-28 20:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-28 20:09 diff against a tag ? Dave Jones
2005-04-28 20:42 ` Junio C Hamano [this message]
2005-04-28 21:01 ` Linus Torvalds
2005-04-28 21:28 ` Junio C Hamano
2005-04-28 22:06 ` Dave Jones
2005-04-28 22:22 ` Linus Torvalds
2005-04-28 23:44 ` Dave Jones
2005-04-28 23:14 ` Morten Welinder
2005-04-28 23:27 ` Linus Torvalds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vpswe7hvj.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=davej@redhat.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox