* Issues with git diff-tree --quiet --ignore-space-change
@ 2015-07-14 21:03 Sebastian Schuberth
0 siblings, 0 replies; only message in thread
From: Sebastian Schuberth @ 2015-07-14 21:03 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-07-14 21:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-14 21:03 Issues with git diff-tree --quiet --ignore-space-change Sebastian Schuberth
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).