# Per-hunk whitespace cleaning in pre-commit?

1 messages from 2008-10-28 to 2008-10-28. Participants: Jonathan del Strother.
Thread: https://gitlist.dev/t/16068

## Jonathan del Strother, 2008-10-28 12:45

Subject: Per-hunk whitespace cleaning in pre-commit?
Message-ID: <57518fd10810280545mc74fccfp59a30bd0c2946e4f@mail.gmail.com>
URL: https://gitlist.dev/e/57518fd10810280545mc74fccfp59a30bd0c2946e4f%40mail.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?

```
