git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* confused by git diff --exit-code
@ 2012-10-24 10:33 Bogolisk
  0 siblings, 0 replies; only message in thread
From: Bogolisk @ 2012-10-24 10:33 UTC (permalink / raw)
  To: git

With merge conflicts in the work-tree, diff's exit-code seems inconsistent. I 
thought --quiet implied --exit-code


/others/foo$ git diff --quiet
/others/foo$ echo $?
1

/others/foo$ git diff --exit-code
diff --cc foo.txt
index f3dc283,bea67fd..0000000
--- a/foo.txt
+++ b/foo.txt
/others/foo$ echo $?
0

/others/foo$ git diff --cc --quiet
/others/foo$ echo $?
0

/others/foo$ git diff --cc --exit-code
diff --cc foo.txt
index f3dc283,bea67fd..0000000
--- a/foo.txt
+++ b/foo.txt
/others/foo$ echo $?
0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-24 10:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-24 10:33 confused by git diff --exit-code Bogolisk

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 NNTP newsgroup(s).