X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3701-add-interactive.sh;h=687bd7ab53397d3bc9d5150bc7cd290efa8ebdbc;hb=69abb194eed5b2f06590d0145e4034300c3e7ac9;hp=62fd65e18d434711176ddb1c22ef057b879e992a;hpb=6674d310d179400358d581f9725cbd4a2c32e3bf;p=git.git diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh index 62fd65e18..687bd7ab5 100755 --- a/t/t3701-add-interactive.sh +++ b/t/t3701-add-interactive.sh @@ -138,6 +138,20 @@ test_expect_success 'real edit works' ' test_cmp expected output ' +test_expect_success 'skip files similarly as commit -a' ' + git reset && + echo file >.gitignore && + echo changed >file && + echo y | git add -p file && + git diff >output && + git reset && + git commit -am commit && + git diff >expected && + test_cmp expected output && + git reset --hard HEAD^ +' +rm -f .gitignore + if test "$(git config --bool core.filemode)" = false then say 'skipping filemode tests (filesystem does not properly support modes)'