From: Vincent Pit Date: Mon, 6 Oct 2008 16:49:49 +0000 (+0200) Subject: This is 0.03 X-Git-Tag: v0.03^0 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Frgit.git;a=commitdiff_plain;h=67e585ffae69ce0c350a920658738d7864b1d54a This is 0.03 --- diff --git a/Changes b/Changes index ebda156..a7ec790 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,12 @@ Revision history for rgit +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 + pull may need it. + + Fix : The root directory can also be a repository. + + Tst : Almost reached 98% of coverage. + 0.02 2008-10-05 22:40 UTC + Fix : Missing $VERSION in App::Rgit::Config. + Tst : Don't bundle fake repositories, but create them on the fly. diff --git a/META.yml b/META.yml index 4363d63..60b9e97 100644 --- a/META.yml +++ b/META.yml @@ -1,6 +1,6 @@ --- #YAML:1.0 name: rgit -version: 0.02 +version: 0.03 abstract: Recursively execute a command on all the git repositories in a directory tree. license: perl author: diff --git a/README b/README index 2403748..bbd8c43 100644 --- a/README +++ b/README @@ -3,7 +3,7 @@ NAME directory tree. VERSION - Version 0.02 + Version 0.03 SYNOPSIS rgit [GIT_OPTIONS] COMMAND [COMMAND_ARGS] @@ -11,9 +11,10 @@ SYNOPSIS DESCRIPTION This utility recursively searches in the current directory (or in the directory given by the "GIT_DIR" environment variable if it's set) for - all git repositories, "chdir" into each of them, and executes the - specified git command. Moreover, those formats are substuted in the - arguments before running the command : + all git repositories, sort this list by the repository path, "chdir" + into each of them, and executes the specified git command. Moreover, + those formats are substuted in the arguments before running the command + : * "^n" with the current repository name. @@ -30,7 +31,7 @@ DESCRIPTION * "^b" with a "bareified" relative path, i.e. "^g" if this is a bare repository, and "^w.git" otherwise. - * "^B" is the absolute version of the "bareified" path. + * "^B" with an absolute version of the "bareified" path. * "^R" with the absolute path to the current root directory. diff --git a/bin/rgit b/bin/rgit index 101d634..6531094 100755 --- a/bin/rgit +++ b/bin/rgit @@ -10,7 +10,7 @@ use List::Util qw/first/; use App::Rgit; -our $VERSION = '0.02'; +our $VERSION = '0.03'; my $cmd = first { !/^-/ } @ARGV; $cmd = ' ' unless defined $cmd; @@ -45,7 +45,7 @@ rgit - Recursively execute a command on all the git repositories in a directory =head1 VERSION -Version 0.02 +Version 0.03 =head1 SYNOPSIS diff --git a/lib/App/Rgit.pm b/lib/App/Rgit.pm index 38e4c38..f877d78 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.02 +Version 0.03 =cut -our $VERSION = '0.02'; +our $VERSION = '0.03'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Command.pm b/lib/App/Rgit/Command.pm index 644c05b..42bd1f7 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.02 +Version 0.03 =cut -our $VERSION = '0.02'; +our $VERSION = '0.03'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Command/Each.pm b/lib/App/Rgit/Command/Each.pm index ba42b12..a42ddb8 100644 --- a/lib/App/Rgit/Command/Each.pm +++ b/lib/App/Rgit/Command/Each.pm @@ -11,11 +11,11 @@ App::Rgit::Command::Each - Class for commands to execute for each repository. =head1 VERSION -Version 0.02 +Version 0.03 =cut -our $VERSION = '0.02'; +our $VERSION = '0.03'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Command/Once.pm b/lib/App/Rgit/Command/Once.pm index 88e77f8..55ee9dc 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.02 +Version 0.03 =cut -our $VERSION = '0.02'; +our $VERSION = '0.03'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Config.pm b/lib/App/Rgit/Config.pm index ae85075..d585374 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.02 +Version 0.03 =cut -our $VERSION = '0.02'; +our $VERSION = '0.03'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Config/Default.pm b/lib/App/Rgit/Config/Default.pm index 8630fb6..6926846 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.02 +Version 0.03 =cut -our $VERSION = '0.02'; +our $VERSION = '0.03'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Repository.pm b/lib/App/Rgit/Repository.pm index c282ebd..82c9f56 100644 --- a/lib/App/Rgit/Repository.pm +++ b/lib/App/Rgit/Repository.pm @@ -16,11 +16,11 @@ App::Rgit::Repository - Class representing a Git repository. =head1 VERSION -Version 0.02 +Version 0.03 =cut -our $VERSION = '0.02'; +our $VERSION = '0.03'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Utils.pm b/lib/App/Rgit/Utils.pm index 89adfe2..651ea77 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.02 +Version 0.03 =cut -our $VERSION = '0.02'; +our $VERSION = '0.03'; =head1 DESCRIPTION