From: Jakub Narebski <jnareb@gmail.com>
To: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
Cc: <git@vger.kernel.org>, Jakub Narebski <jnareb@gmail.com>
Subject: Re: Q: "git diff" using tag names
Date: Fri, 28 Oct 2011 06:21:51 -0700 (PDT) [thread overview]
Message-ID: <m3aa8l5k1y.fsf@localhost.localdomain> (raw)
In-Reply-To: <4EAABC15020000A100007D9D@gwsmtp1.uni-regensburg.de>
"Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de> writes:
> When using a somewhat older git (of SLES11 SP1 SDK),
Nb. you can check version of git with "git --version".
> I could not
> find a way to "git diff" between two tag names; I can only diff
> between two commit numbers. I can display a changeset using "git
> show", but that's not what I wanted.
>
> Is it possible to get the diff I want using older versions, and is
> such a feature implemented in the current version? If so, since
> when?
From the very beginning in Git you can use tag name where you need
commit identifier; Git would use commit that tag points to (will
dereference or peel a tag).
That is not possible in some [censored] version control systems; I am
looking at you, Subversion!
So if you can do
$ git show v0.9
$ git show v1.0
you can also do
$ git diff v0.9 v1.0
and
$ git log v0.9..v1.0
--
Jakub Narębski
next prev parent reply other threads:[~2011-10-28 13:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-28 12:28 Q: "git diff" using tag names Ulrich Windl
2011-10-28 12:59 ` Alexey Shumkin
2011-11-02 7:31 ` Antw: " Ulrich Windl
2011-11-02 9:29 ` Alexey Shumkin
2011-11-02 9:34 ` Frans Klaver
2011-11-02 20:08 ` Alexey Shumkin
2011-11-02 9:35 ` Junio C Hamano
2011-11-02 20:08 ` Alexey Shumkin
2011-10-28 13:21 ` Jakub Narebski [this message]
2011-11-02 7:35 ` Antw: " Ulrich Windl
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=m3aa8l5k1y.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=Ulrich.Windl@rz.uni-regensburg.de \
--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;
as well as URLs for NNTP newsgroup(s).