Lines Matching refs:file
347 my ($file) = @_;
349 open (my $maint, '<', "$file")
350 or die "$P: Can't open MAINTAINERS file '$file': $!\n";
377 push(@self_test_info, {file=>$file, linenr=>$i, line=>$line});
385 my ($file) = $_;
386 return if ($file !~ m@/MAINTAINERS$@);
387 $file = $File::Find::name;
388 return if (! -f $file);
389 push(@mfiles, $file);
417 foreach my $file (@files) {
418 push(@mfiles, "$path$file") if ($file !~ /^\./);
427 foreach my $file (@mfiles) {
428 read_maintainer_file("$file");
433 my ($file) = @_;
435 return if ($file =~ m@\bMAINTAINERS$@);
437 if (-f $file && ($email_file_emails || $file =~ /\.yaml$/)) {
438 open(my $f, '<', $file)
439 or die "$P: Can't open $file: $!\n";
532 foreach my $file (@ARGV) {
533 if ($file ne "&STDIN") {
534 $file = canonpath($file);
536 if ((-d $file)) {
537 $file =~ s@([^/])$@$1/@;
538 } elsif (!(-f $file)) {
539 die "$P: file '${file}' not found\n";
542 if ($from_filename && (vcs_exists() && !vcs_file_exists($file))) {
543 warn "$P: file '$file' not found in version control $!\n";
545 if ($from_filename || ($file ne "&STDIN" && vcs_file_exists($file))) {
546 $file =~ s/^\Q${cur_path}\E//; #strip any absolute path
547 $file =~ s/^\Q${lk_path}\E//; #or the path to the lk tree
548 push(@files, $file);
549 if ($file ne "MAINTAINERS" && -f $file && $keywords) {
550 open(my $f, '<', $file)
551 or die "$P: Can't open $file: $!\n";
566 open(my $patch, "< $file")
567 or die "$P: Can't open $file: $!\n";
613 warn "$P: file '${file}' doesn't appear to be a patch. "
860 foreach my $file (@files) {
878 if (file_match_pattern($file, $value)) {
893 if (file_match_pattern($file, $value)) {
895 my $file_pd = ($file =~ tr@/@@);
901 $exact_pattern_match_hash{$file} = 1;
909 if ($file =~ m/$value/x) {
942 maintainers_in_file($file);
956 foreach my $file (@files) {
960 $file !~ /MAINTAINERS$/ &&
961 !$exact_pattern_match_hash{$file}))) {
962 vcs_file_signoffs($file);
965 vcs_file_blame($file);
1015 my ($file, $pattern) = @_;
1017 if ($file =~ m@^$pattern@) {
1021 if ($file =~ m@^$pattern@) {
1022 my $s1 = ($file =~ tr@/@@);
1585 my ($cmd, $file) = @_;
1668 my ($file) = @_;
1672 return @commits if (!(-f $file));
1686 next if ("$file" ne "$diff_file");
1697 next if ("$file" ne "$diff_file");
2201 my ($file) = @_;
2217 ($commits, $signers_ref, $authors_ref, $stats_ref) = vcs_find_signers($cmd, $file);
2273 my ($file) = @_;
2284 @all_commits = vcs_blame($file);
2303 …ommit_count, $commit_signers_ref, $commit_authors_ref, $stats_ref) = vcs_find_signers($cmd, $file);
2321 …ommit_count, $commit_signers_ref, $commit_authors_ref, $stats_ref) = vcs_find_signers($cmd, $file);
2401 my ($file) = @_;
2419 my ($file) = @_;