diff options
author | Eric Wong <e@yhbt.net> | 2020-07-05 22:44:49 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-06 20:01:25 +0000 |
commit | 7c07c9cc7cd976d254547948e7a209cc0e8a6e51 (patch) | |
tree | 7d5aacc1363a4118637f497d4f2f0a6b56bf4a61 | |
parent | 3a825edc7e2ad557b50a10780dc4118902d2635e (diff) | |
download | public-inbox-7c07c9cc7cd976d254547948e7a209cc0e8a6e51.tar.gz |
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.
-rw-r--r-- | lib/PublicInbox/Git.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/PublicInbox/Git.pm b/lib/PublicInbox/Git.pm index 776e4832..265524ff 100644 --- a/lib/PublicInbox/Git.pm +++ b/lib/PublicInbox/Git.pm @@ -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; |