threads / discuss / 20598

Re: RE : RE : trailling whitespace with git am ?

Subject: Re: RE : RE : trailling whitespace with git am ?

## tl;dr

2 messages between Aug 14, 2009 and Aug 14, 2009.

replies: 1people: 2as markdown or json

Alex Riesen· Aug 14, 2009, 20:48 UTC · lore

On Fri, Aug 14, 2009 at 22:46, PICCA Frédéric-Emmanuel<frederic-emmanuel.picca@synchrotron-soleil.fr> wrote:

Show 8 quoted lines
>> how can I do the difference between a patch with normal CR+LF (the autor use this format)
>> and a patch without CR+LF due to the webmail ?
>
>> That is a question to your webmail provider but I think you generally
>> can't.  Use dos2unix as Alex suggested and you should be fine.
>
> git am --whitespace=fix was sufficient to apply the patch
>

Depending on your situation it can be an overkill: it'll remove _all_ trailing white space. Not just \r (CR).

PICCA Frédéric-Emmanuel· Aug 14, 2009, 20:50 UTC · re: Alex Riesen · lore

RE : RE : RE : trailling whitespace with git am ?

> > git am --whitespace=fix was sufficient to apply the patch
> Depending on your situation it can be an overkill: it'll remove _all_ trailing
> white space. Not just \r (CR).
so /s /t and /r are the same things for git ?

← back to recent threads