Re: Tip of the day: archaeology

From: Linus Torvalds <torvalds@osdl.org>
Date: 2005-12-14 08:54:44
On Tue, 13 Dec 2005, Junio C Hamano wrote:
> 
> *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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Dec 14 08:58:10 2005

This archive was generated by hypermail 2.1.8 : 2005-12-14 08:58:17 EST