X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3003-ls-files-exclude.sh;h=d5ec333131f92cd086924815a9f32ad1c8b50aae;hb=c7934306d1504325d26950f35759ad478772e9c3;hp=fc1e379321a5ccd278951b7aaa21f677f7cbc960;hpb=ee50af1566e78354c1a2d0feea2115b99a535d9d;p=git.git diff --git a/t/t3003-ls-files-exclude.sh b/t/t3003-ls-files-exclude.sh index fc1e37932..d5ec33313 100755 --- a/t/t3003-ls-files-exclude.sh +++ b/t/t3003-ls-files-exclude.sh @@ -29,4 +29,12 @@ test_expect_success 'add file to gitignore' ' ' check_all_output +test_expect_success 'ls-files -i lists only tracked-but-ignored files' ' + echo content >other-file && + git add other-file && + echo file >expect && + git ls-files -i --exclude-standard >output && + test_cmp expect output +' + test_done