mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Michal Piotrowski" <michal.k.k.piotrowski@gmail.com>
To: "Ingo Molnar" <mingo@elte.hu>
Cc: "Noah Watkins" <nwatkins@ittc.ku.edu>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -rt] whitespace cleanup for 2.6.20-rc5-rt7
Date: Mon, 22 Jan 2007 22:54:35 +0100	[thread overview]
Message-ID: <6bffcb0e0701221354j341e9f07s761c6c049d7196ce@mail.gmail.com> (raw)
In-Reply-To: <20070122195836.GC21277@elte.hu>

On 22/01/07, Ingo Molnar <mingo@elte.hu> wrote:
>
> * Noah Watkins <nwatkins@ittc.ku.edu> wrote:
>
> > fixes trailing whitespace and spaces before tab indents in
> > 2.6.20-rc5-rt7 as reported with: git-apply --whitespace=error-all
>
> thanks. Did you do the patch manually, or do you have a script for that
> perhaps?
>

How about this script?

"d) Ensure that your patch does not add new trailing whitespace.  The below
   script will fix up your patch by stripping off such whitespace.

	#!/bin/sh

	strip1()
	{
		TMP=$(mktemp /tmp/XXXXXX)
		cp "$1" "$TMP"
		sed -e '/^+/s/[ 	]*$//' <"$TMP" >"$1"
		rm "$TMP"
	}

	for i in "$@"
	do
		strip1 "$i"
	done
"
http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt

Regards,
Michal

-- 
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/)

  parent reply	other threads:[~2007-01-22 21:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-20 20:40 Noah Watkins
2007-01-22 19:58 ` Ingo Molnar
2007-01-22 21:21   ` noah
2007-01-22 21:54   ` Michal Piotrowski [this message]
2007-01-22 23:42     ` Richard Knutsson
2007-01-23  0:26       ` Satoru Takeuchi
2007-01-23 20:32         ` Richard Knutsson

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=6bffcb0e0701221354j341e9f07s761c6c049d7196ce@mail.gmail.com \
    --to=michal.k.k.piotrowski@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=nwatkins@ittc.ku.edu \
    /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

all inboxes | Powered by JetHome®