X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3003-ls-files-exclude.sh;h=d5ec333131f92cd086924815a9f32ad1c8b50aae;hb=96b8d93a539f3a9f43f0fc38214db8753cac3c2e;hp=fc1e379321a5ccd278951b7aaa21f677f7cbc960;hpb=6dbdba00ea2175894e1ad7a5e96899b7b087ed1d;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