Skip to content

Commit 9b73ce7

Browse files
committed
Merge branch 'ab/require-perl-5.8'
* ab/require-perl-5.8: perl: use "use warnings" instead of -w perl: bump the required Perl version to 5.8 from 5.6.[21]
2 parents 329351f + 3328ace commit 9b73ce7

16 files changed

+27
-13
lines changed

INSTALL

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ Issues of note:
6767
- A POSIX-compliant shell is required to run many scripts needed
6868
for everyday use (e.g. "bisect", "pull").
6969

70-
- "Perl" is needed to use some of the features (e.g. preparing a
71-
partial commit using "git add -i/-p", interacting with svn
72-
repositories with "git svn"). If you can live without these, use
73-
NO_PERL.
70+
- "Perl" version 5.8 or later is needed to use some of the
71+
features (e.g. preparing a partial commit using "git add -i/-p",
72+
interacting with svn repositories with "git svn"). If you can
73+
live without these, use NO_PERL.
7474

7575
- "openssl" library is used by git-imap-send to use IMAP over SSL.
7676
If you don't need it, use NO_OPENSSL.

contrib/examples/git-svnimport.perl

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

33
# This tool is copyright (c) 2005, Matthias Urlichs.
44
# It is released under the Gnu Public License, version 2.

contrib/fast-import/import-directories.perl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl -w
1+
#!/usr/bin/perl
22
#
33
# Copyright 2008-2009 Peter Krefting <[email protected]>
44
#
@@ -140,6 +140,7 @@ =head3 Revision commit message section
140140

141141
# Globals
142142
use strict;
143+
use warnings;
143144
use integer;
144145
my $crlfmode = 0;
145146
my @revs;

git-add--interactive.perl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
#!/usr/bin/perl -w
1+
#!/usr/bin/perl
22

3+
use 5.008;
34
use strict;
5+
use warnings;
46
use Git;
57

68
binmode(STDOUT, ":raw");

git-archimport.perl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl -w
1+
#!/usr/bin/perl
22
#
33
# This tool is copyright (c) 2005, Martin Langhoff.
44
# It is released under the Gnu Public License, version 2.
@@ -54,6 +54,7 @@ =head1 Devel Notes
5454
5555
=cut
5656

57+
use 5.008;
5758
use strict;
5859
use warnings;
5960
use Getopt::Std;

git-cvsexportcommit.perl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
#!/usr/bin/perl -w
1+
#!/usr/bin/perl
22

3+
use 5.008;
34
use strict;
5+
use warnings;
46
use Getopt::Std;
57
use File::Temp qw(tempdir);
68
use Data::Dumper;

git-cvsimport.perl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/perl -w
1+
#!/usr/bin/perl
22

33
# This tool is copyright (c) 2005, Matthias Urlichs.
44
# It is released under the Gnu Public License, version 2.
@@ -13,6 +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;
1617
use strict;
1718
use warnings;
1819
use Getopt::Long;

git-cvsserver.perl

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

18+
use 5.008;
1819
use strict;
1920
use warnings;
2021
use bytes;

git-difftool.perl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#
1111
# Any arguments that are unknown to this script are forwarded to 'git diff'.
1212

13+
use 5.008;
1314
use strict;
1415
use warnings;
1516
use Cwd qw(abs_path);

git-relink.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
# Scan two git object-trees, and hardlink any common objects between them.
88

9-
use 5.006;
9+
use 5.008;
1010
use strict;
1111
use warnings;
1212
use Getopt::Long;

0 commit comments

Comments
 (0)