# diff -b / -w and empty diffs

1 messages from 2008-12-12 to 2008-12-12. Participants: Lars Noschinski.
Thread: https://gitlist.dev/t/16698

## Lars Noschinski, 2008-12-12 17:57

Subject: diff -b / -w and empty diffs
Message-ID: <20081212175736.GA20046@lars.home.noschinski.de>
URL: https://gitlist.dev/e/20081212175736.GA20046%40lars.home.noschinski.de

```
Hello!

If the difference between two files is only whitespace, "git diff -b"
leads to diffs just consisting of the "diff" and "index" lines. I would
like an option to suppress those files in the diff output because it
breaks "git diff -b > patch; git apply patch" workflows (and often I'm
just interested in "real" changes).

Is there any reason why such behaviour is not implemented yet (besides
the fact that nobody cared to do it)?

```
