{"thread":{"id":"25054","subject":"How to diff between a file on a branch and a master.","startedAt":"2010-09-09T17:04:50Z","lastAt":"2010-09-09T17:16:26Z","messageCount":2,"participants":["hogsolo","Jacob Helwig"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"150373","messageId":"1284051890085-5515312.post@n2.nabble.com","threadId":"25054","inReplyTo":null,"subject":"How to diff between a file on a branch and a master.","fromName":"hogsolo","fromEmail":"greg@localdirt.com","sentAt":"2010-09-09T17:04:50Z","receivedAt":"2010-09-09T17:04:50Z","isPatch":false,"sender":{"key":"greg@localdirt.com","avatar":null},"body":"\nI've got a working file in my master, but I want to see what's different\nabout it on the branch.\nI've seen how to diff the WHOLE branch and master, but not target a specific\nfile.\nWhat's the syntax for that?\n\nthanks\n-- \nView this message in context: http://git.661346.n2.nabble.com/How-to-diff-between-a-file-on-a-branch-and-a-master-tp5515312p5515312.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"150374","messageId":"20100909171626.GD8466@vfa-6z.perlninja.com","threadId":"25054","inReplyTo":"1284051890085-5515312.post@n2.nabble.com","subject":"Re: How to diff between a file on a branch and a master.","fromName":"Jacob Helwig","fromEmail":"jacob.helwig@gmail.com","sentAt":"2010-09-09T17:16:26Z","receivedAt":"2010-09-09T17:16:26Z","isPatch":false,"sender":{"key":"jacob.helwig@gmail.com","avatar":"https://avatars.githubusercontent.com/u/14557?v=4"},"body":"On Thu, 09 Sep 2010 10:04:50 -0700, hogsolo wrote:\n> \n> I've got a working file in my master, but I want to see what's different\n> about it on the branch.\n> I've seen how to diff the WHOLE branch and master, but not target a specific\n> file.\n> What's the syntax for that?\n> \n> thanks\n\nYou should just be able to tack \" -- path/to/file\" on the end of the git\ndiff invocation you're using to get the diff for the entire branch.\n\n-- \nJacob Helwig\n"}]}