Re: git command to read
- From
Jeff King <peff@peff.net>
- Date
- Oct 21, 2008, 11:25 UTC
- Message-ID
- <20081021112521.GC17363@coredump.intra.peff.net>
- In-Reply-To
- <18685.47909.354146.487700@cargo.ozlabs.ibm.com>
On Tue, Oct 21, 2008 at 10:21:09PM +1100, Paul Mackerras wrote:
> Is there a command in git at the moment that will read commit IDs on > standard input and print the contents of each commit on standard > output (without waiting for EOF on stdin)?
How about:
git cat-file --batch
?
Unfortunately it just dumps the raw commit information instead of allowing the usual formatting, but perhaps that is sufficient (you asked for "contents").
-Peff