X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/9b4a6e70a1390d653201e48e12d09005b3fba6c8..69db97142c4c1cd7b574a4d0e53203182955cb37:/t/t0002-status.sh diff --git a/t/t0002-status.sh b/t/t0002-status.sh index 4364709..2512c53 100755 --- a/t/t0002-status.sh +++ b/t/t0002-status.sh @@ -107,14 +107,11 @@ test_expect_success 'Make a conflicting patch' ' ' cat > expected.txt < output.txt && test_cmp expected.txt output.txt ' @@ -148,7 +145,7 @@ A fie M foo/bar EOF test_expect_success 'Status after resolving the push' ' - stg resolved -a && + git add --update && stg status > output.txt && test_cmp expected.txt output.txt ' @@ -175,4 +172,21 @@ test_expect_success 'Status of disappeared newborn' ' test_cmp expected.txt output.txt ' +cat > expected.txt < output.txt && + test_cmp expected.txt output.txt +' + +test_expect_success 'Status after renaming a file (with rename detection)' ' + git config stgit.diff-opts -M && + stg status > output.txt && + test_cmp expected.txt output.txt +' + test_done