# trailing whitespace problem

2 messages from 2007-10-02 to 2007-10-02. Participants: lode leroy, Junio C Hamano.
Thread: https://gitlist.dev/t/10116

## lode leroy, 2007-10-02 12:07

Subject: trailing whitespace problem
Message-ID: <b41dbf4a0710020507va40ef83u50c88094f8c2823b@mail.gmail.com>
URL: https://gitlist.dev/e/b41dbf4a0710020507va40ef83u50c88094f8c2823b%40mail.gmail.com

```
when I use git commit -a, I get the following message:

*
* You have some suspicious patch lines:
*
* In src/test.c
* trailing whitespace (line 60)
src/test.c:60: }

when I fix the whitespace problem,  and do "git commit -a" again,
I still get the same message.

Only after adding the file again, with "git add src/test.c",
I can commit my changes.

git version 1.5.3.2 (on cygwin)

ps: not related to CR/LF...

```

## Junio C Hamano, 2007-10-02 18:54

Subject: Re: trailing whitespace problem
Message-ID: <7vk5q5l54f.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vk5q5l54f.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <b41dbf4a0710020507va40ef83u50c88094f8c2823b@mail.gmail.com>

```
"lode leroy" <lode.leroy@gmail.com> writes:

> when I use git commit -a, I get the following message:
>
> *
> * You have some suspicious patch lines:
> *
> * In src/test.c
> * trailing whitespace (line 60)
> src/test.c:60: }
>
> when I fix the whitespace problem,  and do "git commit -a" again,
> I still get the same message.
>
> Only after adding the file again, with "git add src/test.c",
> I can commit my changes.

Interesting.  Are you doing anything unusual, like "assume unchanged"?

> git version 1.5.3.2 (on cygwin)
>
> ps: not related to CR/LF...

```
