quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Quilt-dev] [PATCH] remove-trailing-ws


From: Andreas Krebbel
Subject: [Quilt-dev] [PATCH] remove-trailing-ws
Date: Fri, 30 Nov 2012 10:18:48 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0

Hi,

the script for trailing whitespace removal fails for me if a context diff has 
an "delete-only" chunk
at the end. The following patch fixes this for me.

Bye,

-Andreas-


 quilt/scripts/remove-trailing-ws.in |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: quilt-0.48/quilt/scripts/remove-trailing-ws.in
===================================================================
--- quilt-0.48.orig/quilt/scripts/remove-trailing-ws.in
+++ quilt-0.48/quilt/scripts/remove-trailing-ws.in
@@ -88,8 +88,7 @@ while (<>) {
                my $last_line = defined $2 ? $2 : $1;
                while ($line_number <= $last_line) {
                    $_ = <>;
-                   defined $_
-                       or die sprintf(_("%s: I'm confused.\n"), $0);
+                   defined $_ or last;
                    if (s/(^[+!] .*?)[ \t]+$/$1/) {
                        push @{$files{$file}}, $line_number;
                    }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]