Re: [RFC] get_sha1() shorthands for blob/tree objects
- From
Martin Langhoff <martin.langhoff@gmail.com>
- Date
- Apr 19, 2006, 00:14 UTC
- Message-ID
- <46a038f90604181714j6fce1867wc17952d898f8e7ae@mail.gmail.com>
- In-Reply-To
- <Pine.LNX.4.64.0604181627101.3701@g5.osdl.org>
On 4/19/06, Linus Torvalds <torvalds@osdl.org> 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.
Show 11 quoted lines
> 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