Merge branch 'ta/lint-gitlink-older-perl-fix'

The development helper script to lint gitlink references in the
documentation has been updated to avoid a newer Perl regular
expression syntax that breaks on older Perl versions.

* ta/lint-gitlink-older-perl-fix:
  lint-gitlink: don't use empty lower bound in .{0,8}
main
Junio C Hamano 2026-09-13 21:53:30 -07:00
commit 584621d0b0
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ die "BUG: No list of valid linkgit:* files given" unless @ARGV;
while (<>) {
my $line = $_;
next if $line =~ /^\s*(ifn?def|endif)::/;
while ($line =~ m/(.{,8})((git[-a-z]+|scalar)\[(\d)*\])/g) {
while ($line =~ m/(.{0,8})((git[-a-z]+|scalar)\[(\d)*\])/g) {
my $pos = pos $line;
my ($macro, $target, $page, $section) = ($1, $2, $3, $4);
if ( $macro ne "linkgit:" ) {