# Re: trailling whitespace with git am ?

2 messages from 2009-08-14 to 2009-08-14. Participants: Alex Riesen, PICCA Frédéric-Emmanuel.
Thread: https://gitlist.dev/t/20599

## Alex Riesen, 2009-08-14 21:43

Subject: Re: trailling whitespace with git am ?
Message-ID: <81b0412b0908141443vc54c009o9ec39b3f617311dd@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b0908141443vc54c009o9ec39b3f617311dd%40mail.gmail.com

```
On Fri, Aug 14, 2009 at 22:50, PICCA
Frédéric-Emmanuel<frederic-emmanuel.picca@synchrotron-soleil.fr>
wrote:
>> > 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 ?
>

almost. For git-apply's whitespace fixing code. Why?

```

## PICCA Frédéric-Emmanuel, 2009-08-14 21:50

Subject: RE : trailling whitespace with git am ?
Message-ID: <606CC410B038E34CB97646A32D0EC0BF0181FAC3@venusbis.synchrotron-soleil.fr>
URL: https://gitlist.dev/e/606CC410B038E34CB97646A32D0EC0BF0181FAC3%40venusbis.synchrotron-soleil.fr
In-Reply-To: <81b0412b0908141443vc54c009o9ec39b3f617311dd@mail.gmail.com>

```
> > so /s /t and /r are the same things for git ?

> almost. For git-apply's whitespace fixing code. Why?

Because for the user the message trailling whitespace was not clear
In fact the problem was a dos/unix format not a trailling space.

but whitespace=fix solve this problem. I was surprise first because I was looking for
remaining space at the end of lines of the patch not this CR+LF things.

Maybe git apply should warn the user a different way if their is that sort of dos/unix imcompatibilities.

thanks

Frederic

```
