From: Junio C Hamano Date: Thu, 28 Apr 2005 20:42:40 GMT Subject: Re: diff against a tag ? Message-ID: <7vpswe7hvj.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20050428200953.GD8514@redhat.com> >>>>> "DJ" == Dave Jones 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