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

Issues with git diff-tree --quiet --ignore-space-change

From
Sebastian Schuberth <sschuberth@gmail.com>
Date
Jul 14, 2015, 21:03 UTC
Message-ID
<mo3tel$otc$1@ger.gmane.org>
Hi,
I believe there's something wrong with diff-tree's --ignore-space-change option in conjunction with --quiet. In Git's repo, I get

$ git --version git version 2.4.5

$ git diff-tree --quiet --ignore-space-change c925fe23684455735c3bb1903803643a24a58d8f ; echo $? c925fe23684455735c3bb1903803643a24a58d8f 0

First question is, why do I see the SHA1 printed to the output, esp. as I specified --quiet?
Secondly, the exit code of 0 indicates there's no diff. However, using
$ git diff-tree --patch --ignore-space-change c925fe23684455735c3bb1903803643a24a58d8f
I see the diff (which does not only consist of whitespaces).
If I omit --ignore-space-change the return value is correct:

$ git diff-tree --quiet c925fe23684455735c3bb1903803643a24a58d8f ; echo $? c925fe23684455735c3bb1903803643a24a58d8f 1

Am I missing something, or are these bugs?
-- 
Sebastian Schuberth
Message 1 of 1 in “Issues with git diff-tree --quiet --ignore-space-change”
  1. Sebastian SchuberthJul 14, 2015

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.