Re: How do get a specific version of a particular file?
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Feb 27, 2007, 12:53 UTC
- Message-ID
- <81b0412b0702270453ib2398a7q4b348a8677f5ac1e@mail.gmail.com>
- In-Reply-To
- <81b0412b0702270449r7aced195xa0a24af78d94243a@mail.gmail.com>
On 2/27/07, Alex Riesen <raa.lkml@gmail.com> wrote:
Show 5 quoted lines
> > git cat-file -p <objname>:file > > I.e.: git cat-file v1.37:e2fsck/pass1.c >
Err... With -p (for pretty).
git cat-file -p v1.37:e2fsck/pass1.c
This outputs just the file, not prettifying, actually.
Btw, for broken OS (and not to be named broken workarounds for the broken OS') we probably need "-o <output-file>". I forget what it was, but something used to mangle pipes on windows.