]> Sergey Matveev's repositories - public-inbox.git/commitdiff
git: use v5.10.1, parent.pm and Time::HiRes::stat
authorEric Wong <e@yhbt.net>
Sun, 5 Jul 2020 22:44:49 +0000 (22:44 +0000)
committerEric Wong <e@yhbt.net>
Mon, 6 Jul 2020 20:01:25 +0000 (20:01 +0000)
parent.pm is leaner than base.pm, and Time::HiRes::stat is
more accurate, so take advantage of these Perl 5.10+-isms
since it's been over a year since we left 5.8 behind.

lib/PublicInbox/Git.pm

index 776e483291b61fc639aa6b4aac5a4b66ce8c350a..265524ffafdcca60ab736de6e4714eb1b02c53a6 100644 (file)
@@ -8,15 +8,16 @@
 # There are also API changes to simplify our usage and data set.
 package PublicInbox::Git;
 use strict;
-use warnings;
+use v5.10.1;
+use parent qw(Exporter);
 use POSIX ();
 use IO::Handle; # ->autoflush
+use Errno qw(EINTR);
 use File::Glob qw(bsd_glob GLOB_NOSORT);
+use Time::HiRes qw(stat);
 use PublicInbox::Spawn qw(popen_rd);
 use PublicInbox::Tmpfile;
-use base qw(Exporter);
 our @EXPORT_OK = qw(git_unquote git_quote);
-use Errno qw(EINTR);
 our $PIPE_BUFSIZ = 65536; # Linux default
 our $in_cleanup;