Git development
 help / color / mirror / Atom feed
From: "Shawn O. Pearce" <spearce@spearce.org>
To: Jeff King <peff@peff.net>
Cc: Bill Lear <rael@zopyra.com>, git@vger.kernel.org
Subject: Re: Contents of file for a commit
Date: Sun, 27 Jan 2008 00:01:28 -0500	[thread overview]
Message-ID: <20080127050127.GT24004@spearce.org> (raw)
In-Reply-To: <20080127044944.GA25247@coredump.intra.peff.net>

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.  :-)

-- 
Shawn.

  reply	other threads:[~2008-01-27  5:02 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 [this message]
2008-01-27 14:31       ` Bill Lear

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=20080127050127.GT24004@spearce.org \
    --to=spearce@spearce.org \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    --cc=rael@zopyra.com \
    /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