From: Vincent Pit Date: Tue, 7 Oct 2008 22:03:08 +0000 (+0200) Subject: This is 0.04 X-Git-Tag: v0.04 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Frgit.git;a=commitdiff_plain;h=refs%2Ftags%2Fv0.04 This is 0.04 --- diff --git a/Changes b/Changes index a7ec790..f5397e8 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,16 @@ Revision history for rgit +0.04 2008-10-07 22:05 UTC + + Add : Command-line switches -V, -I, -K. List::Util isn't required + anymore. + + Add : Policies for when a command fail. + + Add : Interactive mode. + + Fix : Test more portably the returned status of system. POSIX is + required. + + Fix : git-gui should be ran once too. + + Fix : Setting GIT_DIR didn't really work. + + Tst : Coverage down to 95%. + 0.03 2008-10-06 16:45 UTC + Chg : Repositories are now sorted by path before being visited. + Fix : Prefer to chdir() into the working directory, as commands like diff --git a/META.yml b/META.yml index 60b9e97..cbb3fe0 100644 --- a/META.yml +++ b/META.yml @@ -1,6 +1,6 @@ --- #YAML:1.0 name: rgit -version: 0.03 +version: 0.04 abstract: Recursively execute a command on all the git repositories in a directory tree. license: perl author: @@ -9,12 +9,13 @@ generated_by: ExtUtils::MakeMaker version 6.42 distribution_type: module requires: Carp: 0 + Config: 0 Cwd: 0 Exporter: 0 File::Find: 0 File::Spec::Functions: 0 - List::Util: 0 Object::Tiny: 0 + POSIX: 0 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.3.html version: 1.3 diff --git a/Makefile.PL b/Makefile.PL index 8414683..fed0fa5 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -30,6 +30,7 @@ WriteMakefile( EXE_FILES => [ 'bin/rgit' ], PREREQ_PM => { 'Carp' => 0, + 'Config' => 0, 'Cwd' => 0, 'Exporter' => 0, 'File::Find' => 0, diff --git a/README b/README index bbd8c43..369d180 100644 --- a/README +++ b/README @@ -3,10 +3,10 @@ NAME directory tree. VERSION - Version 0.03 + Version 0.04 SYNOPSIS - rgit [GIT_OPTIONS] COMMAND [COMMAND_ARGS] + rgit [-K|-V|-I] [GIT_OPTIONS] COMMAND [COMMAND_ARGS] DESCRIPTION This utility recursively searches in the current directory (or in the @@ -38,12 +38,32 @@ DESCRIPTION * "^^" with a bare "^". There are actually a few commands that are only executed once in the - current directory : "version", "help", "daemon" and "init". For any of - those, no format substitution is done. + current directory : "daemon", "gui", "help", "init" and "version". For + any of those, no format substitution is done. You can specify which "git" executable to use with the "GIT_EXEC_PATH" environment variable. +COMMAND LINE SWITCHES + "rgit" takes its options as the capital switches that comes before the + git command. It's possible to bundle them together. They are removed + from the argument list before calling "git". + + * "-K" + + Keep processing on error. The default policy is to stop whenever an + error occured. + + * "-I" + + Enables interactive mode when the standard input is a tty. Requires + Term::ReadKey to be installed. This lets you choose interactively + what to do when one of the commands returns a non-zero status. + + * "-V" + + Outputs the version. + EXAMPLES Execute "git gc" on all the repositories below the current directory : @@ -59,8 +79,8 @@ EXAMPLES GIT_DIR="/foo/bar" rgit remote add host git://host/qux/^b DEPENDENCIES - The core modules Carp, Cwd, Exporter, File::Find, File::Spec::Functions - and List::Util. + The core modules Carp, "Config", Cwd, Exporter, File::Find, + File::Spec::Functions and POSIX. Object::Tiny. diff --git a/bin/rgit b/bin/rgit index 06364ad..c823ba8 100755 --- a/bin/rgit +++ b/bin/rgit @@ -13,7 +13,7 @@ use App::Rgit; our $VERSION; BEGIN { - $VERSION = '0.03'; + $VERSION = '0.04'; } my %opts; @@ -98,7 +98,7 @@ rgit - Recursively execute a command on all the git repositories in a directory =head1 VERSION -Version 0.03 +Version 0.04 =head1 SYNOPSIS @@ -173,7 +173,7 @@ The default policy is to stop whenever an error occured. C<-I> -Enables interactive mode. +Enables interactive mode when the standard input is a tty. Requires L to be installed. This lets you choose interactively what to do when one of the commands returns a non-zero status. @@ -201,7 +201,7 @@ Add a remote to all repositories in "/foo/bar" to their bare counterpart in C, L, L, L, L and L. +The core modules L, C, L, L, L, L and L. L. diff --git a/lib/App/Rgit.pm b/lib/App/Rgit.pm index a21e248..302d713 100644 --- a/lib/App/Rgit.pm +++ b/lib/App/Rgit.pm @@ -15,11 +15,11 @@ App::Rgit - Backend that supports the rgit utility. =head1 VERSION -Version 0.03 +Version 0.04 =cut -our $VERSION = '0.03'; +our $VERSION = '0.04'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Command.pm b/lib/App/Rgit/Command.pm index cf58e94..6361d08 100644 --- a/lib/App/Rgit/Command.pm +++ b/lib/App/Rgit/Command.pm @@ -15,11 +15,11 @@ App::Rgit::Command - Base class for App::Rgit commands. =head1 VERSION -Version 0.03 +Version 0.04 =cut -our $VERSION = '0.03'; +our $VERSION = '0.04'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Command/Each.pm b/lib/App/Rgit/Command/Each.pm index ef843f7..3d2bcf8 100644 --- a/lib/App/Rgit/Command/Each.pm +++ b/lib/App/Rgit/Command/Each.pm @@ -13,11 +13,11 @@ App::Rgit::Command::Each - Class for commands to execute for each repository. =head1 VERSION -Version 0.03 +Version 0.04 =cut -our $VERSION = '0.03'; +our $VERSION = '0.04'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Command/Once.pm b/lib/App/Rgit/Command/Once.pm index 55ee9dc..f6d9bde 100644 --- a/lib/App/Rgit/Command/Once.pm +++ b/lib/App/Rgit/Command/Once.pm @@ -11,11 +11,11 @@ App::Rgit::Command::Once - Class for commands to execute only once. =head1 VERSION -Version 0.03 +Version 0.04 =cut -our $VERSION = '0.03'; +our $VERSION = '0.04'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Config.pm b/lib/App/Rgit/Config.pm index d585374..cf13d19 100644 --- a/lib/App/Rgit/Config.pm +++ b/lib/App/Rgit/Config.pm @@ -18,11 +18,11 @@ App::Rgit::Config - Base class for App::Rgit configurations. =head1 VERSION -Version 0.03 +Version 0.04 =cut -our $VERSION = '0.03'; +our $VERSION = '0.04'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Config/Default.pm b/lib/App/Rgit/Config/Default.pm index 6926846..e34767b 100644 --- a/lib/App/Rgit/Config/Default.pm +++ b/lib/App/Rgit/Config/Default.pm @@ -15,11 +15,11 @@ App::Rgit::Config::Default - Default App::Rgit configuration class. =head1 VERSION -Version 0.03 +Version 0.04 =cut -our $VERSION = '0.03'; +our $VERSION = '0.04'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Repository.pm b/lib/App/Rgit/Repository.pm index ec96328..c798100 100644 --- a/lib/App/Rgit/Repository.pm +++ b/lib/App/Rgit/Repository.pm @@ -17,11 +17,11 @@ App::Rgit::Repository - Class representing a Git repository. =head1 VERSION -Version 0.03 +Version 0.04 =cut -our $VERSION = '0.03'; +our $VERSION = '0.04'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Utils.pm b/lib/App/Rgit/Utils.pm index 0804c01..606df56 100644 --- a/lib/App/Rgit/Utils.pm +++ b/lib/App/Rgit/Utils.pm @@ -11,11 +11,11 @@ App::Rgit::Utils - Miscellanous utilities for App::Rgit classes. =head1 VERSION -Version 0.03 +Version 0.04 =cut -our $VERSION = '0.03'; +our $VERSION = '0.04'; =head1 DESCRIPTION