aboutsummaryrefslogtreecommitdiff
path: root/t/t3003-ls-files-exclude.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t3003-ls-files-exclude.sh')
-rwxr-xr-xt/t3003-ls-files-exclude.sh8
1 files changed, 8 insertions, 0 deletions
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