From 7c07c9cc7cd976d254547948e7a209cc0e8a6e51 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 5 Jul 2020 22:44:49 +0000 Subject: git: use v5.10.1, parent.pm and Time::HiRes::stat 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 | 7 ++++--- 1 file 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; -- cgit v1.2.3-24-ge0c7