3 test_description='git-status ignored files'
14 test_expect_success 'status untracked directory with --ignored' '
15 echo "ignored" >.gitignore &&
17 : >untracked/ignored &&
18 : >untracked/uncommitted &&
19 git status --porcelain --ignored >actual &&
20 test_cmp expected actual
27 ?? untracked/uncommitted
31 test_expect_success 'status untracked directory with --ignored -u' '
32 git status --porcelain --ignored -u >actual &&
33 test_cmp expected actual
43 test_expect_success 'status ignored directory with --ignore' '
46 : >ignored/uncommitted &&
47 git status --porcelain --ignored >actual &&
48 test_cmp expected actual
55 !! ignored/uncommitted
58 test_expect_success 'status ignored directory with --ignore -u' '
59 git status --porcelain --ignored -u >actual &&
60 test_cmp expected actual
70 test_expect_success 'status untracked directory with ignored files with --ignore' '
72 mkdir untracked-ignored &&
73 mkdir untracked-ignored/test &&
74 : >untracked-ignored/ignored &&
75 : >untracked-ignored/test/ignored &&
76 git status --porcelain --ignored >actual &&
77 test_cmp expected actual
84 !! untracked-ignored/ignored
85 !! untracked-ignored/test/ignored
88 test_expect_success 'status untracked directory with ignored files with --ignore -u' '
89 git status --porcelain --ignored -u >actual &&
90 test_cmp expected actual
99 test_expect_success 'status ignored tracked directory with --ignore' '
100 rm -rf untracked-ignored &&
102 : >tracked/committed &&
103 git add tracked/committed &&
105 echo "tracked" >.gitignore &&
106 git status --porcelain --ignored >actual &&
107 test_cmp expected actual
116 test_expect_success 'status ignored tracked directory with --ignore -u' '
117 git status --porcelain --ignored -u >actual &&
118 test_cmp expected actual
128 test_expect_success 'status ignored tracked directory and uncommitted file with --ignore' '
129 : >tracked/uncommitted &&
130 git status --porcelain --ignored >actual &&
131 test_cmp expected actual
138 !! tracked/uncommitted
141 test_expect_success 'status ignored tracked directory and uncommitted file with --ignore -u' '
142 git status --porcelain --ignored -u >actual &&
143 test_cmp expected actual