From: Ross Burton Date: Mon, 15 Oct 2018 20:30:37 +0000 (+0100) Subject: scripts/patchreview: tighten patch detection X-Git-Tag: uninative-2.3~48 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ed912e10c61ea9d45ca648e03eebafeebcf7e9b0;p=openembedded-core.git scripts/patchreview: tighten patch detection Only look in recipes-* folders for patches, to stop finding patches in e.g. meta/lib/oeqa/manual. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/scripts/contrib/patchreview.py b/scripts/contrib/patchreview.py index 1086c95f67..a4d5ba6867 100755 --- a/scripts/contrib/patchreview.py +++ b/scripts/contrib/patchreview.py @@ -203,7 +203,7 @@ if __name__ == "__main__": if args.directory: os.chdir(args.directory) - patches = subprocess.check_output(("git", "ls-files", "*.patch", "*.diff")).decode("utf-8").split() + patches = subprocess.check_output(("git", "ls-files", "recipes-*/**/*.patch", "recipes-*/**/*.diff")).decode("utf-8").split() results = patchreview(patches) analyse(results, want_blame=args.blame, verbose=args.verbose) if args.histogram: