Skip to content

Commit

Permalink
Merge branch 'ab/require-perl-5.8' into maint
Browse files Browse the repository at this point in the history
* 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]
  • Loading branch information
gitster committed Dec 9, 2010
2 parents 8828aa3 + 3328ace commit fa8f1ca
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 13 deletions.
8 changes: 4 additions & 4 deletions INSTALL
Expand Up @@ -67,10 +67,10 @@ Issues of note:
- A POSIX-compliant shell is required to run many scripts needed
for everyday use (e.g. "bisect", "pull").

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

- "openssl" library is used by git-imap-send to use IMAP over SSL.
If you don't need it, use NO_OPENSSL.
Expand Down
2 changes: 1 addition & 1 deletion contrib/examples/git-svnimport.perl
@@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!/usr/bin/perl

# This tool is copyright (c) 2005, Matthias Urlichs.
# It is released under the Gnu Public License, version 2.
Expand Down
3 changes: 2 additions & 1 deletion contrib/fast-import/import-directories.perl
@@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!/usr/bin/perl
#
# Copyright 2008-2009 Peter Krefting <peter@softwolves.pp.se>
#
Expand Down Expand Up @@ -140,6 +140,7 @@ =head3 Revision commit message section

# Globals
use strict;
use warnings;
use integer;
my $crlfmode = 0;
my @revs;
Expand Down
4 changes: 3 additions & 1 deletion git-add--interactive.perl
@@ -1,6 +1,8 @@
#!/usr/bin/perl -w
#!/usr/bin/perl

use 5.008;
use strict;
use warnings;
use Git;

binmode(STDOUT, ":raw");
Expand Down
3 changes: 2 additions & 1 deletion git-archimport.perl
@@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!/usr/bin/perl
#
# This tool is copyright (c) 2005, Martin Langhoff.
# It is released under the Gnu Public License, version 2.
Expand Down Expand Up @@ -54,6 +54,7 @@ =head1 Devel Notes
=cut

use 5.008;
use strict;
use warnings;
use Getopt::Std;
Expand Down
4 changes: 3 additions & 1 deletion git-cvsexportcommit.perl
@@ -1,6 +1,8 @@
#!/usr/bin/perl -w
#!/usr/bin/perl

use 5.008;
use strict;
use warnings;
use Getopt::Std;
use File::Temp qw(tempdir);
use Data::Dumper;
Expand Down
3 changes: 2 additions & 1 deletion git-cvsimport.perl
@@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!/usr/bin/perl

# This tool is copyright (c) 2005, Matthias Urlichs.
# It is released under the Gnu Public License, version 2.
Expand All @@ -13,6 +13,7 @@
# The head revision is on branch "origin" by default.
# You can change that with the '-o' option.

use 5.008;
use strict;
use warnings;
use Getopt::Long;
Expand Down
1 change: 1 addition & 0 deletions git-cvsserver.perl
Expand Up @@ -15,6 +15,7 @@
####
####

use 5.008;
use strict;
use warnings;
use bytes;
Expand Down
1 change: 1 addition & 0 deletions git-difftool.perl
Expand Up @@ -10,6 +10,7 @@
#
# Any arguments that are unknown to this script are forwarded to 'git diff'.

use 5.008;
use strict;
use warnings;
use Cwd qw(abs_path);
Expand Down
2 changes: 1 addition & 1 deletion git-relink.perl
Expand Up @@ -6,7 +6,7 @@
#
# Scan two git object-trees, and hardlink any common objects between them.

use 5.006;
use 5.008;
use strict;
use warnings;
use Getopt::Long;
Expand Down
3 changes: 2 additions & 1 deletion git-send-email.perl
@@ -1,4 +1,4 @@
#!/usr/bin/perl -w
#!/usr/bin/perl
#
# Copyright 2002,2005 Greg Kroah-Hartman <greg@kroah.com>
# Copyright 2005 Ryan Anderson <ryan@michonline.com>
Expand All @@ -16,6 +16,7 @@
# and second line is the subject of the message.
#

use 5.008;
use strict;
use warnings;
use Term::ReadLine;
Expand Down
1 change: 1 addition & 0 deletions git-svn.perl
@@ -1,6 +1,7 @@
#!/usr/bin/env perl
# Copyright (C) 2006, Eric Wong <normalperson@yhbt.net>
# License: GPL v2 or later
use 5.008;
use warnings;
use strict;
use vars qw/ $AUTHOR $VERSION
Expand Down
1 change: 1 addition & 0 deletions gitweb/gitweb.perl
Expand Up @@ -7,6 +7,7 @@
#
# This program is licensed under the GPLv2

use 5.008;
use strict;
use warnings;
use CGI qw(:standard :escapeHTML -nosticky);
Expand Down
1 change: 1 addition & 0 deletions perl/Git.pm
Expand Up @@ -7,6 +7,7 @@ Git - Perl interface to the Git version control system

package Git;

use 5.008;
use strict;


Expand Down
1 change: 1 addition & 0 deletions t/t7006/test-terminal.perl
@@ -1,4 +1,5 @@
#!/usr/bin/perl
use 5.008;
use strict;
use warnings;
use IO::Pty;
Expand Down
2 changes: 1 addition & 1 deletion t/t9700/test.pl
@@ -1,7 +1,7 @@
#!/usr/bin/perl
use lib (split(/:/, $ENV{GITPERLLIB}));

use 5.006002;
use 5.008;
use warnings;
use strict;

Expand Down

0 comments on commit fa8f1ca

Please sign in to comment.