[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: Simon Derr
Subject: Re: [bug-patch] [PATCH] Add --ignorecr option to ignore trailing carriage returns
Date: Mon, 4 Jan 2010 10:45:06 +0100 (CET)
User-agent: Alpine 1.10 (DEB 962 2008-03-14)

On Tue, 29 Dec 2009, Andreas Gruenbacher wrote:

> 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.
> > 
> 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?

Hello Andreas,

IIRC, my problem was that I needed to apply a diff that had been created 
from a source tree using the UNIX format (no CR), to a source tree that I 
had modified with a text editor that had converted some files to the DOS 
format (with carriage returns).

I agree that this feature should probably not be included, but if someone 
needs it he can find it in my previous post.

By the way, --binary does not help.



reply via email to

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