From: Junio C Hamano Date: Tue, 13 Dec 2005 22:19:39 GMT Subject: Re: Tip of the day: archaeology Message-ID: <7vbqzk7i84.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Linus Torvalds writes: > 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? Exactly. The point was that we do not ship a prepackaged script like that.