git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to diff between a file on a branch and a master.
@ 2010-09-09 17:04 hogsolo
  2010-09-09 17:16 ` Jacob Helwig
  0 siblings, 1 reply; 2+ messages in thread
From: hogsolo @ 2010-09-09 17:04 UTC (permalink / raw)
  To: git


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
-- 
View this message in context: http://git.661346.n2.nabble.com/How-to-diff-between-a-file-on-a-branch-and-a-master-tp5515312p5515312.html
Sent from the git mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to diff between a file on a branch and a master.
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Jacob Helwig @ 2010-09-09 17:16 UTC (permalink / raw)
  To: hogsolo; +Cc: git

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-09 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).