From: Bill Lear <rael@zopyra.com>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: Jeff King <peff@peff.net>, git@vger.kernel.org
Subject: Re: Contents of file for a commit
Date: Sun, 27 Jan 2008 08:31:44 -0600 [thread overview]
Message-ID: <18332.38352.952940.201025@lisa.zopyra.com> (raw)
In-Reply-To: <20080127050127.GT24004@spearce.org>
On Sunday, January 27, 2008 at 00:01:28 (-0500) Shawn O. Pearce writes:
>Jeff King <peff@peff.net> wrote:
>> On Sat, Jan 26, 2008 at 11:40:27PM -0500, Shawn O. Pearce wrote:
>>
>> > You can also just view the file if you don't want those changes
>> > to be made:
>> >
>> > `git show $commit -- $path`
>>
>> That doesn't work. It says "show me $commit, but limited by $path". So
>> if $path was changed, you see the commit log and diff. If it wasn't, you
>> see nothing.
>
>Gah. Indeed. I should have suggested to Bill:
>
>`git show $commit:$path`
>
>sorry about the confusion, and thanks for the clarification. :-)
Ok, looks like that works. Thanks all.
Bill
prev parent reply other threads:[~2008-01-27 14:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-27 4:22 Contents of file for a commit Bill Lear
2008-01-27 4:28 ` Jeff King
2008-01-27 4:40 ` Shawn O. Pearce
2008-01-27 4:49 ` Jeff King
2008-01-27 5:01 ` Shawn O. Pearce
2008-01-27 14:31 ` Bill Lear [this message]
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=18332.38352.952940.201025@lisa.zopyra.com \
--to=rael@zopyra.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=spearce@spearce.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox