summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes2
-rw-r--r--lib/App/annex_review_unused.pm5
2 files changed, 4 insertions, 3 deletions
diff --git a/Changes b/Changes
index fd88f5d..ecab379 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,8 @@ Revision history for Git::Annex
{{$NEXT}}
- annex-review-unused: Add missing prompt_yn subroutine.
+ - annex-review-unused: Always pass --force to 'git annex dropunused'.
+ Previously it couldn't be passed at all, which is much less useful.
0.004 2020-03-18 17:08:57-07:00 America/Phoenix
- annex-to-annex-dropunused: Fix attempt to call wrong main()
diff --git a/lib/App/annex_review_unused.pm b/lib/App/annex_review_unused.pm
index 340c17f..5c5e5a7 100644
--- a/lib/App/annex_review_unused.pm
+++ b/lib/App/annex_review_unused.pm
@@ -170,10 +170,9 @@ sub main {
}
if (@to_drop) {
- _say_spaced_bullet("Will dropunused"
- . (exists $dropunused_args{force} ? " with --force:" : ":"));
+ _say_spaced_bullet("Will dropunused with --force:");
say "@to_drop\n";
- $annex->annex->dropunused(\%dropunused_args, @to_drop)
+ $annex->annex->dropunused(\%dropunused_args, "--force", @to_drop)
if prompt_yn("Go ahead with this?");
}