Thread (1 message) 1 message, 1 author, 2016-06-15

Re: trailing whitespace problem

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:37

"lode leroy" [off-list ref] 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...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help