Lines Matching refs:file

327     my ($file) = @_;
329 open (my $maint, '<', "$file")
330 or die "$P: Can't open MAINTAINERS file '$file': $!\n";
357 push(@self_test_info, {file=>$file, linenr=>$i, line=>$line});
365 my ($file) = $_;
366 return if ($file !~ m@/MAINTAINERS$@);
367 $file = $File::Find::name;
368 return if (! -f $file);
369 push(@mfiles, $file);
397 foreach my $file (@files) {
398 push(@mfiles, "$path$file") if ($file !~ /^\./);
407 foreach my $file (@mfiles) {
408 read_maintainer_file("$file");
413 my ($file) = @_;
415 return if ($file =~ m@\bMAINTAINERS$@);
417 if (-f $file && ($email_file_emails || $file =~ /\.yaml$/)) {
418 open(my $f, '<', $file)
419 or die "$P: Can't open $file: $!\n";
512 foreach my $file (@ARGV) {
513 if ($file ne "&STDIN") {
514 $file = canonpath($file);
516 if ((-d $file)) {
517 $file =~ s@([^/])$@$1/@;
518 } elsif (!(-f $file)) {
519 die "$P: file '${file}' not found\n";
522 if ($from_filename && (vcs_exists() && !vcs_file_exists($file))) {
523 warn "$P: file '$file' not found in version control $!\n";
525 if ($from_filename || ($file ne "&STDIN" && vcs_file_exists($file))) {
526 $file =~ s/^\Q${cur_path}\E//; #strip any absolute path
527 $file =~ s/^\Q${lk_path}\E//; #or the path to the lk tree
528 push(@files, $file);
529 if ($file ne "MAINTAINERS" && -f $file && $keywords) {
530 open(my $f, '<', $file)
531 or die "$P: Can't open $file: $!\n";
546 open(my $patch, "< $file")
547 or die "$P: Can't open $file: $!\n";
593 warn "$P: file '${file}' doesn't appear to be a patch. "
840 foreach my $file (@files) {
858 if (file_match_pattern($file, $value)) {
873 if (file_match_pattern($file, $value)) {
875 my $file_pd = ($file =~ tr@/@@);
881 $exact_pattern_match_hash{$file} = 1;
889 if ($file =~ m/$value/x) {
922 maintainers_in_file($file);
936 foreach my $file (@files) {
940 $file !~ /MAINTAINERS$/ &&
941 !$exact_pattern_match_hash{$file}))) {
942 vcs_file_signoffs($file);
945 vcs_file_blame($file);
981 my ($file, $pattern) = @_;
983 if ($file =~ m@^$pattern@) {
987 if ($file =~ m@^$pattern@) {
988 my $s1 = ($file =~ tr@/@@);
1521 my ($cmd, $file) = @_;
1596 my ($file) = @_;
1600 return @commits if (!(-f $file));
1614 next if ("$file" ne "$diff_file");
1625 next if ("$file" ne "$diff_file");
2129 my ($file) = @_;
2145 ($commits, $signers_ref, $authors_ref, $stats_ref) = vcs_find_signers($cmd, $file);
2201 my ($file) = @_;
2212 @all_commits = vcs_blame($file);
2231 …ommit_count, $commit_signers_ref, $commit_authors_ref, $stats_ref) = vcs_find_signers($cmd, $file);
2249 …ommit_count, $commit_signers_ref, $commit_authors_ref, $stats_ref) = vcs_find_signers($cmd, $file);
2325 my ($file) = @_;
2343 my ($file) = @_;