[Top][All Lists]

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

Re: [bug-patch] [PATCH] Add --ignorecr option to ignore trailing carriag

From: Andreas Gruenbacher
Subject: Re: [bug-patch] [PATCH] Add --ignorecr option to ignore trailing carriage returns
Date: Tue, 29 Dec 2009 19:30:35 +0100
User-agent: KMail/1.12.2 (Linux/; KDE/4.3.1; i686; ; )

On Thursday 02 July 2009 15:01:18 Simon Derr wrote:
> Hello,
> The attached patch adds the -w and --ignorecr options to patch.
> When used with -l this option will ignore trailing carriage returns.
> This can be useful when dealing with dos/unix and text editors (or 
> users) that arbitrarily add/remove carriage returns.
> I don't know whether this should be included in GNU patch but I happened 
> to need that feature, so I thought I'd make it public. 

I think not.  Thanks for your patch though.

Patch has a heuristic to determine when the line endings of an entire patch 
have been mangled (as may happen when patches are included in emails), but it 
does assume that the input and output files have the correct line endings.  
You did not further describe the problem you are running into, but does it go 
away with patch's --binary option?


reply via email to

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