Re: Getting a file revision
- From
- Jerome Lovy <t2a2e9z8ncbs9qg@brefemail.com>
- Date
- Aug 20, 2007, 11:38 UTC
- Message-ID
- <46C97D26.9090102@brefemail.com>
- In-Reply-To
- <7vir7ccpmj.fsf@gitster.siamese.dyndns.org>
Hi,
Junio C Hamano wrote:
Show 7 quoted lines
> "Bahadir Balban" <bahadir.balban@gmail.com> writes: > >> This might sound like a novice question but anyway: I sometimes have a >> need to quickly recover an old revision of a file just to check >> something or copy some code from it. > > $ git show -p $commit:$path >$path.old-version
Is "-p" a short version of "--pretty" ?
(I do not see it documented in the man-page and assume it is not the "-p" applicable to git-diff-tree, is it ?)
Thanks, Jérôme