git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jacob Helwig <jacob.helwig@gmail.com>
To: hogsolo <greg@localdirt.com>
Cc: git@vger.kernel.org
Subject: Re: How to diff between a file on a branch and a master.
Date: Thu, 9 Sep 2010 10:16:26 -0700	[thread overview]
Message-ID: <20100909171626.GD8466@vfa-6z.perlninja.com> (raw)
In-Reply-To: <1284051890085-5515312.post@n2.nabble.com>

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

On Thu, 09 Sep 2010 10:04:50 -0700, hogsolo wrote:
> 
> I've got a working file in my master, but I want to see what's different
> about it on the branch.
> I've seen how to diff the WHOLE branch and master, but not target a specific
> file.
> What's the syntax for that?
> 
> thanks

You should just be able to tack " -- path/to/file" on the end of the git
diff invocation you're using to get the diff for the entire branch.

-- 
Jacob Helwig

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 665 bytes --]

      reply	other threads:[~2010-09-09 17:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-09 17:04 How to diff between a file on a branch and a master hogsolo
2010-09-09 17:16 ` Jacob Helwig [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=20100909171626.GD8466@vfa-6z.perlninja.com \
    --to=jacob.helwig@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=greg@localdirt.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;
as well as URLs for NNTP newsgroup(s).