Re: How do get a specific version of a particular file?
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 28, 2007, 00:01 UTC
- Message-ID
- <Pine.LNX.4.63.0702280059050.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <86vehnnpy2.fsf@blue.stonehenge.com>
Hi,
On Tue, 27 Feb 2007, Randal L. Schwartz wrote:
Show 13 quoted lines
> >>>>> "Theodore" == Theodore Tso <tytso@mit.edu> writes: > > Theodore> And I'm still not sure why > > Theodore> git show v1.5.0..v1.5.0.1 > > Theodore> doesn't throw an error, and why it prints what it does... > > Wait, that doesn't throw an error? > > (tries it) > > OK, how is that different from git-diff ?
$ git diff v1.5.0..v1.5.0.1
shows the differences between those two versions;
$ git show v1.5.0..v1.5.0.1
is _identical_ to
$ git show v1.5.0 v1.5.0.1
and shows the same as
$ git show v1.5.0; git show v1.5.0.1
i.e. the commit diffs of both commits.
Ciao, Dscho