Skip to content

Commit cdfe2d2

Browse files
JoePerchestorvalds
authored andcommitted
get_maintainer: add test for file in VCS
It's somewhat common for me to ask get_maintainer to tell me who maintains a patch file rather than the files modified by the patch. Emit a warning if using get_maintainer.pl -f <patchfile> Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Link: https://lkml.kernel.org/r/f63229c051567041819f25e76f49d83c6e4c0f71.camel@perches.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b7621eb commit cdfe2d2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎scripts/get_maintainer.pl‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,9 @@ sub read_mailmap {
541541
die "$P: file '${file}' not found\n";
542542
}
543543
}
544+
if ($from_filename && (vcs_exists() && !vcs_file_exists($file))) {
545+
warn "$P: file '$file' not found in version control $!\n";
546+
}
544547
if ($from_filename || ($file ne "&STDIN" && vcs_file_exists($file))) {
545548
$file =~ s/^\Q${cur_path}\E//; #strip any absolute path
546549
$file =~ s/^\Q${lk_path}\E//; #or the path to the lk tree

0 commit comments

Comments
 (0)