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

Re: whitespace checking in git-add?

From
Nicolas Pitre <nico@cam.org>
Date
Feb 21, 2009, 02:14 UTC
Message-ID
<alpine.LFD.2.00.0902202109010.5511@xanadu.home>
In-Reply-To
<20090220230454.GA10112@foursquare.net>
On Fri, 20 Feb 2009, Chris Frey wrote:
> Hi,
> 
> Is it possible to somehow enable whitespace checking during git-add?
> In my searches, I can only seem to find mention of it in git-diff.
One thing you can do is:
 1) 'git add' and 'git commit' as usual
 2) run 'git rebase -f --whitespace=fix HEAD~'
Nicolas
Previous: Chris FreyNext: Sverre Rabbelier
Message 2 of 5 in “whitespace checking in git-add?”
  1. Chris FreyFeb 20, 2009
  2. Nicolas PitreFeb 21, 2009
  3. Sverre RabbelierFeb 21, 2009
  4. Nicolas PitreFeb 21, 2009
  5. Sverre RabbelierFeb 21, 2009

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.