Re: Q: "git diff" using tag names
- From
Alexey Shumkin <alex.crezoff@gmail.com>
- Date
- Oct 28, 2011, 12:59 UTC
- Message-ID
- <20111028165943.2cc8253d@ashu.dyn.rarus.ru>
- In-Reply-To
- <4EAABC15020000A100007D9D@gwsmtp1.uni-regensburg.de>
Tag is a pointer to a commit (if to say simply)
e.g. in my repo $ git show-ref --tags --abbrev=7 -->8-- 676f194 refs/tags/v2.6.7 b23c481 refs/tags/v2.6.8 -->8--
so
$ git diff v2.6.7..v2.6.8 is equivalent to $ git diff 676f194..b23c481
etc
Show 16 quoted lines
> Hi, > > when using a somewhat older git (of SLES11 SP1 SDK), 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? > > As I'm not subscribed to the list, I'd appreciate CC'ed replies. > Thank you. > > Greeting > Ulrich > >