From: Martin Langhoff Date: Wed, 19 Apr 2006 00:14:27 GMT Subject: Re: [RFC] get_sha1() shorthands for blob/tree objects Message-ID: <46a038f90604181714j6fce1867wc17952d898f8e7ae@mail.gmail.com> In-Reply-To: On 4/19/06, Linus Torvalds wrote: > What do people think? Have you ever wanted to > access individual files in some random revision? Do you think this is > useful? Definitely, I've several times had to go through contortions to do this easily, and I've ended up turning to gitweb often to quickly see the state of a file at a given revision. > With this, you can do something like > > git cat-file blob v1.2.4:Makefile > > to get the contents of "Makefile" at revision v1.2.4. > > Now, this isn't necessarily something you really need all that often, but > the concept itself is actually pretty powerful. We could, for example, > allow things like > > git diff v0.99.6:git-commit-script..v1.3.0:git-commit.sh These two examples are more than enough -- I buy ;-) martin