diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-03-14 14:05:23 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-03-14 14:05:23 -0700 |
commit | 066124da88a6d43d125b30a1bc8a66c2d8ef6423 (patch) | |
tree | 77c885b7c2c7ca64fca79908afcdb6efc3ba9ff2 /t | |
parent | 945115026aa63df4ab849ab14a04da31623abece (diff) | |
parent | 105ec9ae8d0d100994ddf1ee5e99e4616558ff90 (diff) | |
download | git-066124da88a6d43d125b30a1bc8a66c2d8ef6423.tar.gz |
Merge branch 'so/clean-dry-run-without-force'
The implementation in "git clean" that makes "-n" and "-i" ignore
clean.requireForce has been simplified, together with the
documentation.
* so/clean-dry-run-without-force:
clean: further clean-up of implementation around "--force"
clean: improve -n and -f implementation and documentation
Diffstat (limited to 't')
-rwxr-xr-x | t/t7300-clean.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t7300-clean.sh b/t/t7300-clean.sh index 611b3dd3ae..1f7201eb60 100755 --- a/t/t7300-clean.sh +++ b/t/t7300-clean.sh @@ -407,6 +407,12 @@ test_expect_success 'clean.requireForce and -f' ' ' +test_expect_success 'clean.requireForce and --interactive' ' + git clean --interactive </dev/null >output 2>error && + test_grep ! "requireForce is true and" error && + test_grep "\*\*\* Commands \*\*\*" output +' + test_expect_success 'core.excludesfile' ' echo excludes >excludes && |