Skip to content

Commit

Permalink
status: verify that --show-ignored-directory prints a warning
Browse files Browse the repository at this point in the history
The option is deprecated now, and we better make sure that keeps saying
so until we finally remove it.

Suggested by Kevin Willford.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Aug 23, 2018
1 parent c10588a commit 36a61b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions t/t7522-status-show-ignored-directory.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ test_expect_success 'setup initial commit and ignore file' '
'

cat >expect <<\EOF
? err
? expect
? output
! dir/ignored/ignored_1.ign
Expand All @@ -38,8 +39,9 @@ test_expect_success 'setup folder with ignored files' '

test_expect_success 'Verify behavior of status on folders with ignored files' '
test_when_finished "git clean -fdx" &&
git status --porcelain=v2 --ignored --untracked-files=all --show-ignored-directory >output &&
test_i18ncmp expect output
git status --porcelain=v2 --ignored --untracked-files=all --show-ignored-directory >output 2>err &&
test_i18ncmp expect output &&
grep "deprecated.*use --ignored=matching instead" err
'

# Test status bahavior on folder with tracked and ignored files
Expand Down

0 comments on commit 36a61b5

Please sign in to comment.