git/list[1] front-page[2] threads[3] people[4] search[5] about
 

trailing whitespace problem

From
LLlode leroy <lode.leroy@gmail.com>
Date
Oct 2, 2007, 12:07 UTC
Message-ID
<b41dbf4a0710020507va40ef83u50c88094f8c2823b@mail.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...
Next: Junio C Hamano
Message 1 of 2 in “trailing whitespace problem”
  1. lode leroyOct 2, 2007
  2. Junio C HamanoOct 2, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.