From: Karl Hasselström Date: Tue, 8 Jul 2008 18:18:50 +0000 (+0200) Subject: Test "stg status" with renames X-Git-Tag: v0.15-rc1~49^2~12 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/15ad4498cb4c4f994e67d70247ef892f551cb16a?ds=sidebyside;hp=--cc Test "stg status" with renames Currently, it only works if -M is not passed to git diff-files, so the second of the two tests fails. Signed-off-by: Karl Hasselström --- 15ad4498cb4c4f994e67d70247ef892f551cb16a diff --git a/t/t0002-status.sh b/t/t0002-status.sh index 43e1ca0..69c29a0 100755 --- a/t/t0002-status.sh +++ b/t/t0002-status.sh @@ -171,4 +171,20 @@ test_expect_success 'Status of disappeared newborn' ' diff -u expected.txt output.txt ' +cat > expected.txt < output.txt && + diff -u expected.txt output.txt +' + +test_expect_failure 'Status after renaming a file (with rename detection)' ' + stg status --diff-opts=-M > output.txt && + diff -u expected.txt output.txt +' + test_done