{"thread":{"id":"19348","subject":"how to get 'git diff' to output patch to file","startedAt":"2009-05-14T11:52:12Z","lastAt":"2009-05-14T12:03:59Z","messageCount":2,"participants":["Aaron Gray","Alex Riesen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"113919","messageId":"93C432AD0B8F4D25A19E0D67C535376A@HPLAPTOP","threadId":"19348","inReplyTo":null,"subject":"how to get 'git diff' to output patch to file","fromName":"Aaron Gray","fromEmail":"aaronngray.lists@googlemail.com","sentAt":"2009-05-14T11:52:12Z","receivedAt":"2009-05-14T11:52:12Z","isPatch":false,"sender":{"key":"aaronngray.lists@googlemail.com","avatar":null},"body":"How do I get 'git diff -u' to output to a file or standard out instead of \nits viewer ?\n\nMany thanks in advance,\n\nAaron\n"},{"id":"113921","messageId":"81b0412b0905140503n527d6a3ah34f4cdb72b0ce4c@mail.gmail.com","threadId":"19348","inReplyTo":"93C432AD0B8F4D25A19E0D67C535376A@HPLAPTOP","subject":"Re: how to get 'git diff' to output patch to file","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2009-05-14T12:03:59Z","receivedAt":"2009-05-14T12:03:59Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"2009/5/14 Aaron Gray <aaronngray.lists@googlemail.com>:\n> How do I get 'git diff -u' to output to a file or standard out instead of\n> its viewer ?\n>\n  git diff -u > file\n  GIT_PAGER=: git diff -u (stdout)\n\nor, depending on how old your Git is\n\n  git --no-pager diff -u\n"}]}