#!/bin/sh test_description='Return value of diffs' . ./test-lib.sh test_expect_success 'setup' ' echo 1 >a && git add . && git commit -m first && echo 2 >b && git add . && git commit -a -m second ' test_expect_success 'git diff-tree HEAD^ HEAD' ' git diff-tree --quiet HEAD^ HEAD >cnt test $? = 1 && test $(wc -l cnt test $? = 0 && test $(wc -l cnt test $? = 1 && test $(wc -l cnt test $? = 1 && test $(wc -l cnt test $? = 0 && test $(wc -l cnt test $? = 0 && test $(wc -l cnt test $? = 0 && test $(wc -l cnt test $? = 1 && test $(wc -l >b && echo 3 >c && git add . && { git diff-index --quiet --cached HEAD^ >cnt test $? = 1 && test $(wc -l cnt test $? = 1 && test $(wc -l cnt test $? = 0 && test $(wc -l >c && { git diff-files --quiet >cnt test $? = 1 && test $(wc -l cnt test $? = 1 && test $(wc -l