git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to get 'git diff' to output patch to file
@ 2009-05-14 11:52 Aaron Gray
  2009-05-14 12:03 ` Alex Riesen
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron Gray @ 2009-05-14 11:52 UTC (permalink / raw)
  To: Git Mailing List

How do I get 'git diff -u' to output to a file or standard out instead of 
its viewer ?

Many thanks in advance,

Aaron

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

* Re: how to get 'git diff' to output patch to file
  2009-05-14 11:52 how to get 'git diff' to output patch to file Aaron Gray
@ 2009-05-14 12:03 ` Alex Riesen
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Riesen @ 2009-05-14 12:03 UTC (permalink / raw)
  To: Aaron Gray; +Cc: Git Mailing List

2009/5/14 Aaron Gray <aaronngray.lists@googlemail.com>:
> How do I get 'git diff -u' to output to a file or standard out instead of
> its viewer ?
>
  git diff -u > file
  GIT_PAGER=: git diff -u (stdout)

or, depending on how old your Git is

  git --no-pager diff -u

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

end of thread, other threads:[~2009-05-14 12:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-14 11:52 how to get 'git diff' to output patch to file Aaron Gray
2009-05-14 12:03 ` Alex Riesen

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).