diff options
Diffstat (limited to 'bin/git-annex-reviewunused')
-rwxr-xr-x | bin/git-annex-reviewunused | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/bin/git-annex-reviewunused b/bin/git-annex-reviewunused new file mode 100755 index 0000000..b4fa7e3 --- /dev/null +++ b/bin/git-annex-reviewunused @@ -0,0 +1,61 @@ +#!/usr/bin/perl +# PODNAME: git-annex-reviewunused +# ABSTRACT: interactively process 'git annex unused' output +# +# Copyright (C) 2019-2020 Sean Whitton <spwhitton@spwhitton.name> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or (at +# your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +=head1 SYNOPSIS + +B<git annex reviewunused> [B<--just-print>] [B<--from=>I<REMOTE>] [B<--used-refspec=>I<USEDREFSPEC>] + +=head1 DESCRIPTION + +This program lets you interactively review unused files in a git annex +repository, choosing which you'd like to drop. By running git-log(1), +it provides more information about unused files than does B<git annex +unused>. + +=head1 OPTIONS + +=over 4 + +=item B<--just-print> + +Run non-interactively: gather and print information about unused +files, and then exit. + +=item B<--from=>I<REMOTE> + +Passed on to B<git annex unused>. + +=item B<--used-refspec=>I<USEDREFSPEC> + +Passed on to B<git annex unused>. + +=back + +=head1 EXIT STATUS + +0 if there are no unused files left at time of program exit, 1 if there are. + +=head1 SEE ALSO + +git-annex-unused(1), git-annex-dropunused(1) + +=cut + +use App::git_annex_reviewunused; +exit App::git_annex_reviewunused->main; |