"Alex Riesen" <raa.lkml@xxxxxxxxx> writes: >> echo ... && >> git add . && >> { >> git diff-index ...; test $? != 0 >> } > > Confused. What's wrong with test_expect_failure which > does not need any of the both ugly constructions? > Hmm... Do you mean: "we expect successful > operation with exit code 1"? No. Think what happens if you broke "git add". - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html