{"thread":{"id":"10116","subject":"trailing whitespace problem","startedAt":"2007-10-02T12:07:51Z","lastAt":"2007-10-02T18:54:08Z","messageCount":2,"participants":["lode leroy","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"54557","messageId":"b41dbf4a0710020507va40ef83u50c88094f8c2823b@mail.gmail.com","threadId":"10116","inReplyTo":null,"subject":"trailing whitespace problem","fromName":"lode leroy","fromEmail":"lode.leroy@gmail.com","sentAt":"2007-10-02T12:07:51Z","receivedAt":"2007-10-02T12:07:51Z","isPatch":false,"sender":{"key":"lode.leroy@gmail.com","avatar":null},"body":"when I use git commit -a, I get the following message:\n\n*\n* You have some suspicious patch lines:\n*\n* In src/test.c\n* trailing whitespace (line 60)\nsrc/test.c:60: }\n\nwhen I fix the whitespace problem,  and do \"git commit -a\" again,\nI still get the same message.\n\nOnly after adding the file again, with \"git add src/test.c\",\nI can commit my changes.\n\ngit version 1.5.3.2 (on cygwin)\n\nps: not related to CR/LF...\n"},{"id":"54579","messageId":"7vk5q5l54f.fsf@gitster.siamese.dyndns.org","threadId":"10116","inReplyTo":"b41dbf4a0710020507va40ef83u50c88094f8c2823b@mail.gmail.com","subject":"Re: trailing whitespace problem","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-10-02T18:54:08Z","receivedAt":"2007-10-02T18:54:08Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"lode leroy\" <lode.leroy@gmail.com> writes:\n\n> when I use git commit -a, I get the following message:\n>\n> *\n> * You have some suspicious patch lines:\n> *\n> * In src/test.c\n> * trailing whitespace (line 60)\n> src/test.c:60: }\n>\n> when I fix the whitespace problem,  and do \"git commit -a\" again,\n> I still get the same message.\n>\n> Only after adding the file again, with \"git add src/test.c\",\n> I can commit my changes.\n\nInteresting.  Are you doing anything unusual, like \"assume unchanged\"?\n\n> git version 1.5.3.2 (on cygwin)\n>\n> ps: not related to CR/LF...\n"}]}