Phillip Wood <phillip.wood123@xxxxxxxxx> writes: >> - test -z "$(git diff file)" >> ... >> + git diff file >out && >> + test_must_be_empty out > > "git diff --exit-code file" would suffice here, we don't need to > redirect the output and check that it is empty. Yes, but the test is trying to be faithful to not just the intent but also the implementation of the original, I think.