=head1 DESCRIPTION
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 C<GIT_DIR> environment variable) for all git repositories, sort this list by the repository path, C<chdir> into each of them, and executes the specified git command.
+For efficiency reasons, repositories located inside another repository won't be searched for.
+
Moreover, those formats are substituted in the arguments before running the command :
=over 4
wanted => sub {
return if m{(?:^|/)\.\.?$}
or not (-d $_ and -r _);
- my $r = App::Rgit::Repository->new(dir => $_);
- $repos{$r->repo} = $r if $r
- and not exists $repos{$r->repo};
+ if (my $r = App::Rgit::Repository->new(dir => $_)) {
+ $File::Find::prune = 1;
+ $repos{$r->repo} = $r unless exists $repos{$r->repo};
+ }
},
follow => 1,
no_chdir => 1,