git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Mark Ryden" <markryde@gmail.com>
To: git@vger.kernel.org
Subject: white spaces in a patch
Date: Wed, 17 Dec 2008 09:31:06 +0200	[thread overview]
Message-ID: <dac45060812162331k19272488r4e95e0555e7a6db9@mail.gmail.com> (raw)

Hello,

It occurred to me that I prepared some patch for a git tree, and
then when testing git-apply on it (on the original tree) I saw
some "white spaces" errors.
I know that I can run:
"git --whitespace=fix apply" on my patch and than create the patch
again ; in this way it will be created without white spaces.

Suppose I create a patch file (let's say : patch.txt)
1) Is there a way to check whether there are white spaces in this
file without running git-apply?
2) Is there a way to get some messages about that there are white spaces
when creating a git patch?

Regards,
Mark

             reply	other threads:[~2008-12-17  7:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-17  7:31 Mark Ryden [this message]
2008-12-17  7:34 ` white spaces in a patch Junio C Hamano
2008-12-17 11:44   ` Mark Ryden
2008-12-17 12:13     ` Sverre Rabbelier
2008-12-17 12:13       ` Mark Ryden
2008-12-17 12:15         ` Thomas Jarosch
2008-12-17 12:22           ` Mark Ryden
2008-12-17 20:02             ` Matthieu Moy
2008-12-17 12:22           ` Jeff King
2008-12-17 12:16         ` Sverre Rabbelier
2008-12-17 12:08   ` Johannes Schindelin
2008-12-17 12:10     ` Mark Ryden

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=dac45060812162331k19272488r4e95e0555e7a6db9@mail.gmail.com \
    --to=markryde@gmail.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).