aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-03-14 14:05:23 -0700
committerJunio C Hamano <gitster@pobox.com>2024-03-14 14:05:23 -0700
commit066124da88a6d43d125b30a1bc8a66c2d8ef6423 (patch)
tree77c885b7c2c7ca64fca79908afcdb6efc3ba9ff2 /t
parent945115026aa63df4ab849ab14a04da31623abece (diff)
parent105ec9ae8d0d100994ddf1ee5e99e4616558ff90 (diff)
downloadgit-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-xt/t7300-clean.sh6
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 &&