threads / discuss / 16698

diff -b / -w and empty diffs

Subject: diff -b / -w and empty diffs

## tl;dr

One message between Dec 12, 2008 and Dec 12, 2008.

replies: 0people: 1as markdown or json

Lars Noschinski· Dec 12, 2008, 17:57 UTC · lore
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)?

← back to recent threads