2 rgit - Recursively execute a command on all the git repositories in a
9 rgit [GIT_OPTIONS] COMMAND [COMMAND_ARGS]
12 This utility recursively searches in the current directory (or in the
13 directory given by the "GIT_DIR" environment variable if it's set) for
14 all git repositories, "chdir" into each of them, and executes the
15 specified git command. Moreover, those formats are substuted in the
16 arguments before running the command :
18 * "^n" with the current repository name.
20 * "^g" with the relative path to the current repository.
22 * "^G" with the absolute path to the current repository.
24 * "^w" with the relative path to the current repository's working
27 * "^W" with the absolute path to the current repository's working
30 * "^b" with a "bareified" relative path, i.e. "^g" if this is a bare
31 repository, and "^w.git" otherwise.
33 * "^B" is the absolute version of the "bareified" path.
35 * "^R" with the absolute path to the current root directory.
37 * "^^" with a bare "^".
39 There are actually a few commands that are only executed once in the
40 current directory : "version", "help", "daemon" and "init". For any of
41 those, no format substitution is done.
43 You can specify which "git" executable to use with the "GIT_EXEC_PATH"
47 Execute "git gc" on all the repositories below the current directory :
51 Tag all the repositories with their name :
55 Add a remote to all repositories in "/foo/bar" to their bare counterpart
58 GIT_DIR="/foo/bar" rgit remote add host git://host/qux/^b
61 The core modules Carp, Cwd, Exporter, File::Find, File::Spec::Functions
67 Vincent Pit, "<perl at profvince.com>", <http://profvince.com>.
69 You can contact me by mail or on "irc.perl.org" (vincent).
72 Please report any bugs or feature requests to "bug-rgit at rt.cpan.org",
73 or through the web interface at
74 <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=rgit>. I will be
75 notified, and then you'll automatically be notified of progress on your
76 bug as I make changes.
79 You can find documentation for this module with the perldoc command.
83 Tests code coverage report is available at
84 <http://www.profvince.com/perl/cover/rgit>.
87 Copyright 2008 Vincent Pit, all rights reserved.
89 This program is free software; you can redistribute it and/or modify it
90 under the same terms as Perl itself.