confused by git diff --exit-code
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
foo.txt +0 -0
/others/foo$ echo $?
0
/others/foo$ git diff --cc --quiet
/others/foo$ echo $?
0
/others/foo$ git diff --cc --exit-code
foo.txt +0 -0
/others/foo$ echo $?
0