Newbie question: equiv of: cvs co -p <filename> ?
- From
- John Ellson <ellson@research.att.com>
- Date
- Aug 9, 2005, 21:59 UTC
- Message-ID
- <ddb8vl$ifq$1@sea.gmane.org>
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