Lines Matching refs:file
314 my ($file) = @_;
316 open (my $maint, '<', "$file")
317 or die "$P: Can't open MAINTAINERS file '$file': $!\n";
347 my ($file) = $_;
348 return if ($file !~ m@/MAINTAINERS$@);
349 $file = $File::Find::name;
350 return if (! -f $file);
351 push(@mfiles, $file);
362 foreach my $file (@files) {
363 push(@mfiles, "${lk_path}MAINTAINERS/$file") if ($file !~ /^\./);
376 foreach my $file (@mfiles) {
377 read_maintainer_file("$file");
469 foreach my $file (@ARGV) {
470 if ($file ne "&STDIN") {
472 if ((-d $file)) {
473 $file =~ s@([^/])$@$1/@;
474 } elsif (!(-f $file)) {
475 die "$P: file '${file}' not found\n";
478 if ($from_filename || ($file ne "&STDIN" && vcs_file_exists($file))) {
479 $file =~ s/^\Q${cur_path}\E//; #strip any absolute path
480 $file =~ s/^\Q${lk_path}\E//; #or the path to the lk tree
481 push(@files, $file);
482 if ($file ne "MAINTAINERS" && -f $file && ($keywords || $file_emails)) {
483 open(my $f, '<', $file)
484 or die "$P: Can't open $file: $!\n";
503 open(my $patch, "< $file")
504 or die "$P: Can't open $file: $!\n";
537 warn "$P: file '${file}' doesn't appear to be a patch. "
655 foreach my $file (@files) {
673 if (file_match_pattern($file, $value)) {
688 if (file_match_pattern($file, $value)) {
690 my $file_pd = ($file =~ tr@/@@);
696 $exact_pattern_match_hash{$file} = 1;
704 if ($file =~ m/$value/x) {
749 foreach my $file (@files) {
752 !$exact_pattern_match_hash{$file}))) {
753 vcs_file_signoffs($file);
756 vcs_file_blame($file);
801 my ($file, $pattern) = @_;
803 if ($file =~ m@^$pattern@) {
807 if ($file =~ m@^$pattern@) {
808 my $s1 = ($file =~ tr@/@@);
1388 my ($cmd, $file) = @_;
1471 my ($file) = @_;
1475 return @commits if (!(-f $file));
1489 next if ("$file" ne "$diff_file");
1500 next if ("$file" ne "$diff_file");
1978 my ($file) = @_;
1994 ($commits, $signers_ref, $authors_ref, $stats_ref) = vcs_find_signers($cmd, $file);
2050 my ($file) = @_;
2061 @all_commits = vcs_blame($file);
2080 …ommit_count, $commit_signers_ref, $commit_authors_ref, $stats_ref) = vcs_find_signers($cmd, $file);
2098 …ommit_count, $commit_signers_ref, $commit_authors_ref, $stats_ref) = vcs_find_signers($cmd, $file);
2178 my ($file) = @_;