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

Re: trailing whitespace problem

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 2, 2007, 18:54 UTC
Message-ID
<7vk5q5l54f.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<b41dbf4a0710020507va40ef83u50c88094f8c2823b@mail.gmail.com>
"lode leroy" <lode.leroy@gmail.com> writes:
Show 14 quoted lines
> 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...
Previous: lode leroy
Message 2 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.