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

Whitespace on commit

From
KTKenneth P. Turvey <kt-usenet@squeakydolphin.com>
Date
Mar 13, 2008, 03:38 UTC
Message-ID
<fra7ji$7p9$1@ger.gmane.org>

I keep getting annoying errors when I try to commit. Git complains that I have whitespace in the wrong places.

This is fine.. I even like it. What I don't like is having to change this stuff manually. Is there anyway to tell git to just fix the stuff and do the commit?

I've tried setting
apply.whitespace = fix 

in my .gitconfig, but that doesn't seem to help when doing commits. Is there another way to handle this?

Thanks!
-- 
Kenneth P. Turvey <kt-usenet@squeakydolphin.com>
Next: Junio C Hamano
Message 1 of 3 in “Whitespace on commit”
  1. Kenneth P. TurveyMar 13, 2008
  2. Junio C HamanoMar 13, 2008
  3. Andreas EricssonMar 13, 2008

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.