{"thread":{"id":"41503","subject":"using git-diff as a diff replacement?","startedAt":"2016-02-24T22:21:08Z","lastAt":"2016-02-25T02:43:26Z","messageCount":3,"participants":["Jacob Keller","Duy Nguyen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"279186","messageId":"CA+P7+xq7gobJbbRxm51APMQ8408jyvW64=1y3wo3jz3rjMsDqA@mail.gmail.com","threadId":"41503","inReplyTo":null,"subject":"using git-diff as a diff replacement?","fromName":"Jacob Keller","fromEmail":"jacob.keller@gmail.com","sentAt":"2016-02-24T22:21:08Z","receivedAt":"2016-02-24T22:21:08Z","isPatch":false,"sender":{"key":"jacob.keller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/874719?v=4"},"body":"Hey,\n\nI know that running \"git diff <path> <path>\" when outside a git\nproject will result in a normal diff being run. I happen to prefer the\ndiff algorithm and diff output of \"git diff\" but there does not seem\nto be a way to have this behavior from within a git tree.\n\nIs there a way to pass an option to git-diff which will result in\nstrict file comparison?\n\nThanks,\nJake\n"},{"id":"279261","messageId":"CACsJy8DTKOhOxdiQbRSddMSTMCQAFmZDdm6G1QeY6TpDf2HuKg@mail.gmail.com","threadId":"41503","inReplyTo":"CA+P7+xq7gobJbbRxm51APMQ8408jyvW64=1y3wo3jz3rjMsDqA@mail.gmail.com","subject":"Re: using git-diff as a diff replacement?","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2016-02-25T02:38:50Z","receivedAt":"2016-02-25T02:38:50Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Thu, Feb 25, 2016 at 5:21 AM, Jacob Keller <jacob.keller@gmail.com> wrote:\n> Hey,\n>\n> I know that running \"git diff <path> <path>\" when outside a git\n> project will result in a normal diff being run. I happen to prefer the\n> diff algorithm and diff output of \"git diff\" but there does not seem\n> to be a way to have this behavior from within a git tree.\n\ngit diff --no-index <path> <path>\n\n?\n-- \nDuy\n"},{"id":"279262","messageId":"CA+P7+xr-OH=nptBS9us5iWKkDr7FX-dfAjJZvBzPkUQ7JPKLzg@mail.gmail.com","threadId":"41503","inReplyTo":"CACsJy8DTKOhOxdiQbRSddMSTMCQAFmZDdm6G1QeY6TpDf2HuKg@mail.gmail.com","subject":"Re: using git-diff as a diff replacement?","fromName":"Jacob Keller","fromEmail":"jacob.keller@gmail.com","sentAt":"2016-02-25T02:43:26Z","receivedAt":"2016-02-25T02:43:26Z","isPatch":false,"sender":{"key":"jacob.keller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/874719?v=4"},"body":"On Wed, Feb 24, 2016 at 6:38 PM, Duy Nguyen <pclouds@gmail.com> wrote:\n> On Thu, Feb 25, 2016 at 5:21 AM, Jacob Keller <jacob.keller@gmail.com> wrote:\n>> Hey,\n>>\n>> I know that running \"git diff <path> <path>\" when outside a git\n>> project will result in a normal diff being run. I happen to prefer the\n>> diff algorithm and diff output of \"git diff\" but there does not seem\n>> to be a way to have this behavior from within a git tree.\n>\n> git diff --no-index <path> <path>\n>\n> ?\n> --\n> Duy\n\nYep thanks.. I swear I did git help diff, but I guess I am blind. This\ndoes what I want, and I had my shell alias diff so I don't forget :D\n\nThanks,\nJake\n"}]}