Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156071
b: refs/heads/master
c: 870020f
h: refs/heads/master
i:
  156069: 5a1ff7c
  156067: a1ee53f
  156063: 5cee528
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Jul 30, 2009
1 parent adcd9a5 commit 94dc7d7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 82c4dfc76200055bd2ae600a08404c10df5f4ff6
refs/heads/master: 870020f93af2323a81f179091a0780dc1d5b916b
23 changes: 19 additions & 4 deletions trunk/scripts/get_maintainer.pl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use strict;

my $P = $0;
my $V = '0.16';
my $V = '0.17';

use Getopt::Long qw(:config no_auto_abbrev);

Expand Down Expand Up @@ -132,6 +132,10 @@
$value =~ s@\.@\\\.@g; ##Convert . to \.
$value =~ s/\*/\.\*/g; ##Convert * to .*
$value =~ s/\?/\./g; ##Convert ? to .
##if pattern is a directory and it lacks a trailing slash, add one
if ((-d $value)) {
$value =~ s@([^/])$@$1/@;
}
}
push(@typevalue, "$type:$value");
} elsif (!/^(\s)*$/) {
Expand All @@ -146,8 +150,10 @@
my @files = ();

foreach my $file (@ARGV) {
next if ((-d $file));
if (!(-f $file)) {
##if $file is a directory and it lacks a trailing slash, add one
if ((-d $file)) {
$file =~ s@([^/])$@$1/@;
} elsif (!(-f $file)) {
die "$P: file '${file}' not found\n";
}
if ($from_filename) {
Expand Down Expand Up @@ -292,7 +298,7 @@ sub file_match_pattern {
sub usage {
print <<EOT;
usage: $P [options] patchfile
$P [options] -f file
$P [options] -f file|directory
version: $V
MAINTAINER field selection options:
Expand Down Expand Up @@ -322,6 +328,15 @@ sub usage {
--version => show version
--help => show this help information
Notes:
Using "-f directory" may give unexpected results:
Used with "--git", git signators for _all_ files in and below
directory are examined as git recurses directories.
Any specified X: (exclude) pattern matches are _not_ ignored.
Used with "--nogit", directory is used as a pattern match,
no individual file within the directory or subdirectory
is matched.
EOT
}

Expand Down

0 comments on commit 94dc7d7

Please sign in to comment.