git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Newbie question:  equiv of:  cvs co -p <filename>  ?
@ 2005-08-09 21:59 John Ellson
  2005-08-09 22:10 ` Johannes Schindelin
  2005-08-10  0:36 ` Linus Torvalds
  0 siblings, 2 replies; 7+ messages in thread
From: John Ellson @ 2005-08-09 21:59 UTC (permalink / raw)
  To: git

How can we cat the latest committed state of a file to stdout?

I hacked this:

	#!/bin/bash
	ID=`git-ls-files -s | grep $1 | cut -d ' ' -f 2`
	TMP=`git-unpack-file $ID`
	cat $TMP
	rm $TMP

but its really ugly!   It must be easier than this?

John

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-08-12  7:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-09 21:59 Newbie question: equiv of: cvs co -p <filename> ? John Ellson
2005-08-09 22:10 ` Johannes Schindelin
2005-08-09 22:18   ` Rene Scharfe
2005-08-10  0:36 ` Linus Torvalds
2005-08-10 14:38   ` [PATCH] cg-cat [was: Re: Newbie question: equiv of: cvs co -p <filename> ? ] John Ellson
2005-08-11 23:03     ` Petr Baudis
2005-08-12  7:53       ` Matthias Urlichs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).