summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-02-28 13:22:10 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-02-28 13:22:10 -0700
commite01e878b7d946d43cd5c4598b25bf729562c28ee (patch)
tree04025349f4349a91c4f4d2c84f757692abe13c9a
parent288c1da28fbaf7ff4621b142dd09f43aa530b423 (diff)
parent8017df194f75fe3136a304c422f2f2a765b3e42a (diff)
downloadp5-Git-Annex-e01e878b7d946d43cd5c4598b25bf729562c28ee.tar.gz
Merge tag 'v0.007' into debian
v0.007 # gpg: Signature made Sun 28 Feb 2021 01:21:28 PM MST # gpg: using RSA key 9B917007AE030E36E4FC248B695B7AE4BF066240 # gpg: issuer "spwhitton@spwhitton.name" # gpg: Good signature from "Sean Whitton <spwhitton@spwhitton.name>" [ultimate] # Primary key fingerprint: 8DC2 487E 51AB DD90 B5C4 753F 0F56 D055 3B6D 411B # Subkey fingerprint: 9B91 7007 AE03 0E36 E4FC 248B 695B 7AE4 BF06 6240
-rw-r--r--Changes4
-rw-r--r--README4
-rwxr-xr-xbin/git-annex-reviewunused (renamed from bin/annex-review-unused)8
-rw-r--r--dist.ini4
-rw-r--r--lib/App/git_annex_reviewunused.pm (renamed from lib/App/annex_review_unused.pm)4
-rwxr-xr-xt/24_git-annex-reviewunused.t (renamed from t/24_annex-review-unused.t)6
6 files changed, 17 insertions, 13 deletions
diff --git a/Changes b/Changes
index a7995b0..3d7133a 100644
--- a/Changes
+++ b/Changes
@@ -2,6 +2,10 @@ Revision history for Git::Annex
{{$NEXT}}
+0.007 2021-02-28 13:20:42-07:00 America/Phoenix
+ - Rename annex-review-unused to git-annex-reviewunused now that git-annex
+ supports third party subcommands.
+
0.006 2020-03-23 17:02:28-07:00 America/Phoenix
- annex-review-unused: Check whether unused files still exist earlier.
Avoids misleading output when --just-print is supplied.
diff --git a/README b/README
index d550c62..b32b1c2 100644
--- a/README
+++ b/README
@@ -8,7 +8,7 @@ Git::Annex -- class representing a git-annex repository
annex-to-annex -- use hardlinks to migrate files between git annex repos
-annex-review-unused -- interactively process `git annex unused` output
+git-annex-reviewunused -- interactively process `git annex unused` output
INSTALLATION
@@ -28,7 +28,7 @@ After installing, you can find documentation for this module and its
scripts with the perldoc & man commands.
% perldoc Git::Annex
- % man annex-review-unused
+ % man git-annex-reviewunused
You can also look for information at:
diff --git a/bin/annex-review-unused b/bin/git-annex-reviewunused
index 99d8798..b4fa7e3 100755
--- a/bin/annex-review-unused
+++ b/bin/git-annex-reviewunused
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# PODNAME: annex-review-unused
+# PODNAME: git-annex-reviewunused
# ABSTRACT: interactively process 'git annex unused' output
#
# Copyright (C) 2019-2020 Sean Whitton <spwhitton@spwhitton.name>
@@ -19,7 +19,7 @@
=head1 SYNOPSIS
-B<annex-review-unused> [B<--just-print>] [B<--from=>I<REMOTE>] [B<--used-refspec=>I<USEDREFSPEC>]
+B<git annex reviewunused> [B<--just-print>] [B<--from=>I<REMOTE>] [B<--used-refspec=>I<USEDREFSPEC>]
=head1 DESCRIPTION
@@ -57,5 +57,5 @@ git-annex-unused(1), git-annex-dropunused(1)
=cut
-use App::annex_review_unused;
-exit App::annex_review_unused->main;
+use App::git_annex_reviewunused;
+exit App::git_annex_reviewunused->main;
diff --git a/dist.ini b/dist.ini
index 1d52ed8..39fc382 100644
--- a/dist.ini
+++ b/dist.ini
@@ -2,9 +2,9 @@ name = Git-Annex
author = Sean Whitton <spwhitton@spwhitton.name>
license = GPL_3
copyright_holder = Sean Whitton <spwhitton@spwhitton.name>
-copyright_year = 2019-2020
+copyright_year = 2019-2021
-version = 0.006
+version = 0.007
[PkgVersion]
[PodWeaver]
diff --git a/lib/App/annex_review_unused.pm b/lib/App/git_annex_reviewunused.pm
index dd2ed23..175d7a0 100644
--- a/lib/App/annex_review_unused.pm
+++ b/lib/App/git_annex_reviewunused.pm
@@ -1,4 +1,4 @@
-package App::annex_review_unused;
+package App::git_annex_reviewunused;
# ABSTRACT: interactively process 'git annex unused' output
#
# Copyright (C) 2019-2020 Sean Whitton <spwhitton@spwhitton.name>
@@ -33,7 +33,7 @@ CORE::exit main unless caller;
=func main
-Implementation of annex-review-unused(1). Please see documentation
+Implementation of git-annex-reviewunused(1). Please see documentation
for that command.
Normally takes no arguments and responds to C<@ARGV>. If you want to
diff --git a/t/24_annex-review-unused.t b/t/24_git-annex-reviewunused.t
index 4947455..b84b608 100755
--- a/t/24_annex-review-unused.t
+++ b/t/24_git-annex-reviewunused.t
@@ -5,7 +5,7 @@ use strict;
use warnings;
use lib 't/lib';
-use App::annex_review_unused;
+use App::git_annex_reviewunused;
use Test::More;
use t::Setup;
use t::Util;
@@ -21,13 +21,13 @@ with_temp_annexes {
{
local $CWD = "source1";
- (undef, undef, $exit) = run_bin "annex-review-unused";
+ (undef, undef, $exit) = run_bin "git-annex-reviewunused";
ok !$exit, "it exits zero when no unused files";
sleep 1;
$source1->rm("foo/foo2/baz");
$source1->commit({ message => "rm" });
- ($output, undef, $exit) = run_bin qw(annex-review-unused --just-print);
+ ($output, undef, $exit) = run_bin qw(git-annex-reviewunused --just-print);
ok $exit, "it exits nonzero when unused files";
ok 20 < @$output && @$output < 30, "it prints ~two log entries";
like $output->[5], qr/unused file #1/, "it prints an expected line";