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

Per-hunk whitespace cleaning in pre-commit?

From
Jonathan del Strother <maillist@steelskies.com>
Date
Oct 28, 2008, 12:45 UTC
Message-ID
<57518fd10810280545mc74fccfp59a30bd0c2946e4f@mail.gmail.com>

I like the idea of whitespace fixing in pre-commit, but I'd prefer if it only cleaned whitespace on the hunks that have changed, rather than on the entire file. Has anyone come up with a pre-commit version that does this?

Message 1 of 1 in “Per-hunk whitespace cleaning in pre-commit?”
  1. Jonathan del StrotherOct 28, 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.