From: Jerome Lovy <t2a2e9z8ncbs9qg@brefemail.com>
To: git@vger.kernel.org
Subject: Re: Getting a file revision
Date: Mon, 20 Aug 2007 13:38:14 +0200 [thread overview]
Message-ID: <46C97D26.9090102@brefemail.com> (raw)
In-Reply-To: <7vir7ccpmj.fsf@gitster.siamese.dyndns.org>
Hi,
Junio C Hamano wrote:
> "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
next prev parent reply other threads:[~2007-08-20 11:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-19 0:42 Getting a file revision Bahadir Balban
2007-08-19 0:52 ` Junio C Hamano
2007-08-20 11:38 ` Jerome Lovy [this message]
2007-08-21 12:49 ` [PATCH] Document the -p option for git-show Miklos Vajna
2007-08-21 13:09 ` Johannes Sixt
2007-08-21 14:29 ` VMiklos
2007-08-21 15:02 ` David Kastrup
2007-08-21 17:01 ` Robin Rosenberg
2007-08-21 17:33 ` Junio C Hamano
2007-08-21 18:50 ` Robin Rosenberg
2007-08-19 0:52 ` Getting a file revision J. Bruce Fields
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46C97D26.9090102@brefemail.com \
--to=t2a2e9z8ncbs9qg@brefemail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.