summaryrefslogtreecommitdiffstats
path: root/scripts/contrib
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-10-15 21:30:37 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-16 20:25:37 +0100
commited912e10c61ea9d45ca648e03eebafeebcf7e9b0 (patch)
tree96878615183bb2821d07db3bb38dd5090ae862b0 /scripts/contrib
parent9b7c1d7ac9b2cbd3744776328386bfb4c90c1afc (diff)
downloadopenembedded-core-ed912e10c61ea9d45ca648e03eebafeebcf7e9b0.tar.gz
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 <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-xscripts/contrib/patchreview.py2
1 files changed, 1 insertions, 1 deletions
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:
'n168' href='#n168'>168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250