mirror of
https://github.com/git/git.git
synced 2026-01-18 06:34:21 +00:00
status: verify that --show-ignored-directory prints a warning
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>
This commit is contained in:
committed by
Jameson Miller
parent
5f45050f2b
commit
2383d4afc7
@@ -21,6 +21,7 @@ test_expect_success 'setup initial commit and ignore file' '
|
||||
'
|
||||
|
||||
cat >expect <<\EOF
|
||||
? err
|
||||
? expect
|
||||
? output
|
||||
! dir/ignored/ignored_1.ign
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user