Re: Tip of the day: archaeology
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Dec 13, 2005, 21:54 UTC
- Message-ID
- <Pine.LNX.4.64.0512131351100.4184@g5.osdl.org>
- In-Reply-To
- <7vpso07l63.fsf_-_@assigned-by-dhcp.cox.net>
On Tue, 13 Dec 2005, Junio C Hamano wrote:
Show 6 quoted lines
> > *1* Sometimes I wish we had "cvs co -p" equivalent. > > $ git cat-blob rev path > > Perhaps?
Isn't "git-ls-tree rev path" good enough? Maybe you want to wrap it with
#!/bin/sh git-ls-tree "$@" | while read mode type sha name do git-cat-file $type $sha done
or something?
Linus