Skip to content

Commit d13a73e

Browse files
tmzullingergitster
authored andcommitted
perl: bump the required Perl version to 5.8.1 from 5.8.0
The following commit will make use of a Getopt::Long feature which is only present in Perl >= 5.8.1. Document that as the minimum version we support. Many of our Perl scripts will continue to run with 5.8.0 but this change allows us to adjust them as needed without breaking any promises to our users. The Perl requirement was last changed in d48b284 (perl: bump the required Perl version to 5.8 from 5.6.[21], 2010-09-24). At that time, 5.8.0 was 8 years old. It is now over 21 years old. Signed-off-by: Todd Zullinger <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 43c8a30 commit d13a73e

22 files changed

+23
-23
lines changed

Documentation/CodingGuidelines

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ For Perl programs:
490490

491491
- Most of the C guidelines above apply.
492492

493-
- We try to support Perl 5.8 and later ("use Perl 5.008").
493+
- We try to support Perl 5.8.1 and later ("use Perl 5.008001").
494494

495495
- use strict and use warnings are strongly preferred.
496496

INSTALL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Issues of note:
119119
- A POSIX-compliant shell is required to run some scripts needed
120120
for everyday use (e.g. "bisect", "request-pull").
121121

122-
- "Perl" version 5.8 or later is needed to use some of the
122+
- "Perl" version 5.8.1 or later is needed to use some of the
123123
features (e.g. sending patches using "git send-email",
124124
interacting with svn repositories with "git svn"). If you can
125125
live without these, use NO_PERL. Note that recent releases of

contrib/diff-highlight/DiffHighlight.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package DiffHighlight;
22

3-
use 5.008;
3+
use 5.008001;
44
use warnings FATAL => 'all';
55
use strict;
66

contrib/mw-to-git/Git/Mediawiki.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package Git::Mediawiki;
22

3-
use 5.008;
3+
use 5.008001;
44
use strict;
55
use POSIX;
66
use Git;

git-archimport.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ =head1 Devel Notes
5454
5555
=cut
5656

57-
use 5.008;
57+
use 5.008001;
5858
use strict;
5959
use warnings;
6060
use Getopt::Std;

git-cvsexportcommit.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/perl
22

3-
use 5.008;
3+
use 5.008001;
44
use strict;
55
use warnings;
66
use Getopt::Std;

git-cvsimport.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# The head revision is on branch "origin" by default.
1414
# You can change that with the '-o' option.
1515

16-
use 5.008;
16+
use 5.008001;
1717
use strict;
1818
use warnings;
1919
use Getopt::Long;

git-cvsserver.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
####
1616
####
1717

18-
use 5.008;
18+
use 5.008001;
1919
use strict;
2020
use warnings;
2121
use bytes;

git-send-email.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# and second line is the subject of the message.
1717
#
1818

19-
use 5.008;
19+
use 5.008001;
2020
use strict;
2121
use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
2222
use Getopt::Long;
@@ -228,7 +228,7 @@ sub system_or_msg {
228228
my @sprintf_args = ($cmd_name ? $cmd_name : $args->[0], $exit_code);
229229
if (defined $msg) {
230230
# Quiet the 'redundant' warning category, except we
231-
# need to support down to Perl 5.8, so we can't do a
231+
# need to support down to Perl 5.8.1, so we can't do a
232232
# "no warnings 'redundant'", since that category was
233233
# introduced in perl 5.22, and asking for it will die
234234
# on older perls.

git-svn.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/perl
22
# Copyright (C) 2006, Eric Wong <[email protected]>
33
# License: GPL v2 or later
4-
use 5.008;
4+
use 5.008001;
55
use warnings $ENV{GIT_PERL_FATAL_WARNINGS} ? qw(FATAL all) : ();
66
use strict;
77
use vars qw/ $AUTHOR $VERSION

0 commit comments

Comments
 (0)