]> git.vpit.fr Git - perl/modules/rgit.git/blobdiff - bin/rgit
Less namespace pollution
[perl/modules/rgit.git] / bin / rgit
index c791124c494c6d4cd275a336510b0a52d8639f68..fc9a1f713bab325cae030646b705311bfb91ed32 100755 (executable)
--- a/bin/rgit
+++ b/bin/rgit
@@ -3,10 +3,10 @@
 use strict;
 use warnings;
 
-use Carp qw/croak/;
-use Config qw/%Config/;
-use Cwd qw/cwd/;
-use File::Spec::Functions qw/catfile path/;
+use Carp       qw/croak/;
+use Config     qw/%Config/;
+use Cwd        qw/cwd/;
+use File::Spec (); # catfile, path
 
 use App::Rgit;
 use App::Rgit::Utils qw/:levels/;
@@ -46,8 +46,8 @@ setpgrp 0, 0 if $Config{d_setpgrp};
 
 my $git = $ENV{GIT_EXEC_PATH};
 unless (defined $git) {
- for (path) {
-  my $g = catfile $_, 'git';
+ for (File::Spec->path) {
+  my $g = File::Spec->catfile($_, 'git');
   if (-x $g) {
    $git = $g;
    last;
@@ -191,7 +191,7 @@ Add a remote to all repositories in "/foo/bar" to their bare counterpart in C<qu
 
 =head1 DEPENDENCIES
 
-The core modules L<Carp>, L<Config>, L<Cwd>, L<Exporter>, L<File::Find>, L<File::Spec::Functions> and L<POSIX>.
+The core modules L<Carp>, L<Config>, L<Cwd>, L<Exporter>, L<File::Find>, L<File::Spec> and L<POSIX>.
 
 =head1 AUTHOR