Lines Matching refs:file
362 my ($file) = @_;
364 open (my $maint, '<', "$file")
365 or die "$P: Can't open MAINTAINERS file '$file': $!\n";
392 push(@self_test_info, {file=>$file, linenr=>$i, line=>$line});
400 my ($file) = $_;
401 return if ($file !~ m@/MAINTAINERS$@);
402 $file = $File::Find::name;
403 return if (! -f $file);
404 push(@mfiles, $file);
432 foreach my $file (@files) {
433 push(@mfiles, "$path$file") if ($file !~ /^\./);
442 foreach my $file (@mfiles) {
443 read_maintainer_file("$file");
448 my ($file) = @_;
450 return if ($file =~ m@\bMAINTAINERS$@);
452 if (-f $file && ($email_file_emails || $file =~ /\.yaml$/)) {
453 open(my $f, '<', $file)
454 or die "$P: Can't open $file: $!\n";
547 foreach my $file (@ARGV) {
548 if ($file ne "&STDIN") {
549 $file = canonpath($file);
551 if ((-d $file)) {
552 $file =~ s@([^/])$@$1/@;
553 } elsif (!(-f $file)) {
554 die "$P: file '${file}' not found\n";
557 if ($from_filename && (vcs_exists() && !vcs_file_exists($file))) {
558 warn "$P: file '$file' not found in version control $!\n";
560 if ($from_filename || ($file ne "&STDIN" && vcs_file_exists($file))) {
561 $file =~ s/^\Q${cur_path}\E//; #strip any absolute path
562 $file =~ s/^\Q${lk_path}\E//; #or the path to the lk tree
563 push(@files, $file);
564 if ($file ne "MAINTAINERS" && -f $file && $keywords && $keywords_in_file) {
565 open(my $f, '<', $file)
566 or die "$P: Can't open $file: $!\n";
579 open(my $patch, "< $file")
580 or die "$P: Can't open $file: $!\n";
626 warn "$P: file '${file}' doesn't appear to be a patch. "
887 foreach my $file (@files) {
905 if (file_match_pattern($file, $value)) {
920 if (file_match_pattern($file, $value)) {
922 my $file_pd = ($file =~ tr@/@@);
928 $exact_pattern_match_hash{$file} = 1;
936 if ($file =~ m/$value/x) {
969 maintainers_in_file($file);
983 foreach my $file (@files) {
987 $file !~ /MAINTAINERS$/ &&
988 !$exact_pattern_match_hash{$file}))) {
989 vcs_file_signoffs($file);
992 vcs_file_blame($file);
1042 my ($file, $pattern) = @_;
1044 if ($file =~ m@^$pattern@) {
1048 if ($file =~ m@^$pattern@) {
1049 my $s1 = ($file =~ tr@/@@);
1616 my ($cmd, $file) = @_;
1699 my ($file) = @_;
1703 return @commits if (!(-f $file));
1717 next if ("$file" ne "$diff_file");
1728 next if ("$file" ne "$diff_file");
2233 my ($file) = @_;
2249 ($commits, $signers_ref, $authors_ref, $stats_ref) = vcs_find_signers($cmd, $file);
2305 my ($file) = @_;
2316 @all_commits = vcs_blame($file);
2335 …ommit_count, $commit_signers_ref, $commit_authors_ref, $stats_ref) = vcs_find_signers($cmd, $file);
2353 …ommit_count, $commit_signers_ref, $commit_authors_ref, $stats_ref) = vcs_find_signers($cmd, $file);
2433 my ($file) = @_;
2451 my ($file) = @_;