git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Riesen <raa.lkml@gmail.com>
To: Aaron Gray <aaronngray.lists@googlemail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: how to get 'git diff' to output patch to file
Date: Thu, 14 May 2009 14:03:59 +0200	[thread overview]
Message-ID: <81b0412b0905140503n527d6a3ah34f4cdb72b0ce4c@mail.gmail.com> (raw)
In-Reply-To: <93C432AD0B8F4D25A19E0D67C535376A@HPLAPTOP>

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

      reply	other threads:[~2009-05-14 12:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81b0412b0905140503n527d6a3ah34f4cdb72b0ce4c@mail.gmail.com \
    --to=raa.lkml@gmail.com \
    --cc=aaronngray.lists@googlemail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).