From: Jakub Narebski Date: Fri, 28 Oct 2011 13:21:51 GMT Subject: Re: Q: "git diff" using tag names Message-ID: In-Reply-To: <4EAABC15020000A100007D9D@gwsmtp1.uni-regensburg.de> "Ulrich Windl" 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