summaryrefslogtreecommitdiffstats
path: root/scripts/create-pull-request
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2012-12-11 09:28:03 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-13 15:18:44 +0000
commit8251685031d4b268e653c71e956d63907fed8d31 (patch)
tree01d0101cc8d90f5f4945503679a52e7170a6b6a0 /scripts/create-pull-request
parentfad3986ae4bfc1773f5343f6f3a7d8350ae3b8ba (diff)
downloadpoky-8251685031d4b268e653c71e956d63907fed8d31.tar.gz
create-pull-request: detect trailing white space
Add logic in the create-pull-request to detect and warn about the trailing white space inserted by patches. (From OE-Core rev: 3e35310db3cd6d265092724a0e542b9616aca9c5) Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/create-pull-request')
-rwxr-xr-xscripts/create-pull-request8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index 9a8913db72..9692bf1665 100755
--- a/scripts/create-pull-request
+++ b/scripts/create-pull-request
@@ -229,3 +229,11 @@ Review their content, especially the summary mail:
229When you are satisfied, you can send them with: 229When you are satisfied, you can send them with:
230 send-pull-request -a -p $ODIR 230 send-pull-request -a -p $ODIR
231EOM 231EOM
232
233# Check the patches for trailing white space
234egrep -q -e "^\+.*\s+$" $ODIR/*
235if [ $? -ne 1 ]; then
236 echo
237 echo "WARNING: Trailing white space detected at these locations"
238 egrep -nH --color -e "^\+.*\s+$" $ODIR/*
239fi