From fbbf46846a2b1879438f823360efde8c67743f73 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sun, 22 Mar 2020 09:39:45 -0700 Subject: annex-review-unused: Always pass --force to 'git annex dropunused' Signed-off-by: Sean Whitton --- Changes | 2 ++ lib/App/annex_review_unused.pm | 5 ++--- 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?"); } -- cgit v1.2.3