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

diff -b / -w and empty diffs

From
Lars Noschinski <lars@public.noschinski.de>
Date
Dec 12, 2008, 17:57 UTC
Message-ID
<20081212175736.GA20046@lars.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)?

Message 1 of 1 in “diff -b / -w and empty diffs”
  1. Lars NoschinskiDec 12, 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.