From: Vincent Pit Date: Sun, 4 Jan 2009 15:33:53 +0000 (+0100) Subject: This is 0.06 X-Git-Tag: v0.06^0 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=787cc59d827d22afa8a3100daa42e5b9df3fe50d;p=perl%2Fmodules%2Frgit.git This is 0.06 --- diff --git a/Changes b/Changes index f151cd5..99d23da 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,12 @@ Revision history for rgit +0.06 2009-01-04 15:35 UTC + + Chg : INCOMPATIBLE CHANGE : since ^ is actually an escape character + for cmd.exe, and that there's no good universal escape + character, let's use % for our formats instead. + + Fix : Tests on Win32. + + Doc : Nits and clarifications. + 0.05 2008-10-21 21:15 UTC + Add : When a command returned non-zero, you are now ask if you want to fork a shell inside the repository. diff --git a/META.yml b/META.yml index c90a50e..1939c31 100644 --- a/META.yml +++ b/META.yml @@ -1,6 +1,6 @@ --- #YAML:1.0 name: rgit -version: 0.05 +version: 0.06 abstract: Recursively execute a command on all the git repositories in a directory tree. author: - Vincent Pit @@ -20,7 +20,7 @@ no_index: directory: - t - inc -generated_by: ExtUtils::MakeMaker version 6.46 +generated_by: ExtUtils::MakeMaker version 6.48 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 diff --git a/README b/README index bccfd0b..1f54967 100644 --- a/README +++ b/README @@ -3,43 +3,44 @@ NAME directory tree. VERSION - Version 0.05 + Version 0.06 SYNOPSIS rgit [-K|-I|-D|-V] [GIT_OPTIONS] COMMAND [COMMAND_ARGS] 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, 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 - : + This utility recursively searches in a root directory (which may be the + current working directory or - if it has been set - the directory given + by the "GIT_DIR" environment variable) for 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 + substituted in the arguments before running the command : - * "^n" with the current repository name. + * %n with the current repository name. - * "^g" with the relative path to the current repository. + * %g with the relative path (based from the root directory) to the + current repository. - * "^G" with the absolute path to the current repository. + * %G with the absolute path to the current repository. - * "^w" with the relative path to the current repository's working - directory. + * %w with the relative path (based from the root directory) to the + current repository's working directory. - * "^W" with the absolute path to the current repository's working + * %W with the absolute path to the current repository's working directory. - * "^b" with a "bareified" relative path, i.e. "^g" if this is a bare - repository, and "^w.git" otherwise. + * %b with a "bareified" relative path, i.e. %g if this is a bare + repository, and "%w.git" otherwise. - * "^B" with an 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. + * %R with the absolute path to the root directory. - * "^^" with a bare "^". + * "%%" with a bare "%". There are actually a few commands that are only executed once in the - current directory : "daemon", "gui", "help", "init" and "version". For - any of those, no format substitution is done. + root 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. @@ -75,12 +76,12 @@ EXAMPLES Tag all the repositories with their name : - rgit tag ^n + rgit tag %n Add a remote to all repositories in "/foo/bar" to their bare counterpart in "qux" on host : - GIT_DIR="/foo/bar" rgit remote add host git://host/qux/^b + GIT_DIR="/foo/bar" rgit remote add host git://host/qux/%b DEPENDENCIES The core modules Carp, Config, Cwd, Exporter, File::Find, @@ -109,7 +110,7 @@ SUPPORT . COPYRIGHT & LICENSE - Copyright 2008 Vincent Pit, all rights reserved. + Copyright 2008-2009 Vincent Pit, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff --git a/bin/rgit b/bin/rgit index b839375..5b15f34 100755 --- a/bin/rgit +++ b/bin/rgit @@ -13,7 +13,7 @@ use App::Rgit; our $VERSION; BEGIN { - $VERSION = '0.05'; + $VERSION = '0.06'; } my %opts; @@ -134,7 +134,7 @@ rgit - Recursively execute a command on all the git repositories in a directory =head1 VERSION -Version 0.05 +Version 0.06 =head1 SYNOPSIS diff --git a/lib/App/Rgit.pm b/lib/App/Rgit.pm index 91999e2..1291726 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.05 +Version 0.06 =cut -our $VERSION = '0.05'; +our $VERSION = '0.06'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Command.pm b/lib/App/Rgit/Command.pm index 2fe6f04..e04e9f5 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.05 +Version 0.06 =cut -our $VERSION = '0.05'; +our $VERSION = '0.06'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Command/Each.pm b/lib/App/Rgit/Command/Each.pm index 3dec2fb..9cf0067 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.05 +Version 0.06 =cut -our $VERSION = '0.05'; +our $VERSION = '0.06'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Command/Once.pm b/lib/App/Rgit/Command/Once.pm index 09da69e..cf5a686 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.05 +Version 0.06 =cut -our $VERSION = '0.05'; +our $VERSION = '0.06'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Config.pm b/lib/App/Rgit/Config.pm index d299283..3991ade 100644 --- a/lib/App/Rgit/Config.pm +++ b/lib/App/Rgit/Config.pm @@ -20,11 +20,11 @@ App::Rgit::Config - Base class for App::Rgit configurations. =head1 VERSION -Version 0.05 +Version 0.06 =cut -our $VERSION = '0.05'; +our $VERSION = '0.06'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Config/Default.pm b/lib/App/Rgit/Config/Default.pm index 04fe075..543891c 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.05 +Version 0.06 =cut -our $VERSION = '0.05'; +our $VERSION = '0.06'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Repository.pm b/lib/App/Rgit/Repository.pm index 77428c3..94e9dde 100644 --- a/lib/App/Rgit/Repository.pm +++ b/lib/App/Rgit/Repository.pm @@ -24,11 +24,11 @@ App::Rgit::Repository - Class representing a Git repository. =head1 VERSION -Version 0.05 +Version 0.06 =cut -our $VERSION = '0.05'; +our $VERSION = '0.06'; =head1 DESCRIPTION diff --git a/lib/App/Rgit/Utils.pm b/lib/App/Rgit/Utils.pm index a4236ce..98a1289 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.05 +Version 0.06 =cut -our $VERSION = '0.05'; +our $VERSION = '0.06'; =head1 DESCRIPTION