X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft3003-ls-files-exclude.sh;h=d5ec333131f92cd086924815a9f32ad1c8b50aae;hb=5bebcd4ecba0791cecaa49d30ddd7ca8ffe03627;hp=fc1e379321a5ccd278951b7aaa21f677f7cbc960;hpb=814035c12a07927ea03350184a14f869cdce7276;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