Re: How do I get the file contents from an arbitrary revision to stdout?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 8, 2021, 21:54 UTC
- Message-ID
- <xmqqtuhri3mc.fsf@gitster.g>
- In-Reply-To
- <YWCj6NqMrxksN1V8@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> git cat-file -p bar-branch:foo.c > > (the "-p" is "pretty-print based on the object's type", so the two are > equivalent).
IIRC, "cat-file -p" doesn't do textconv, but "show" would, and depending on the use case the difference may matter.