diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2012-12-11 09:28:03 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-13 15:18:44 +0000 |
commit | 8251685031d4b268e653c71e956d63907fed8d31 (patch) | |
tree | 01d0101cc8d90f5f4945503679a52e7170a6b6a0 /scripts | |
parent | fad3986ae4bfc1773f5343f6f3a7d8350ae3b8ba (diff) | |
download | poky-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')
-rwxr-xr-x | scripts/create-pull-request | 8 |
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: | |||
229 | When you are satisfied, you can send them with: | 229 | When you are satisfied, you can send them with: |
230 | send-pull-request -a -p $ODIR | 230 | send-pull-request -a -p $ODIR |
231 | EOM | 231 | EOM |
232 | |||
233 | # Check the patches for trailing white space | ||
234 | egrep -q -e "^\+.*\s+$" $ODIR/* | ||
235 | if [ $? -ne 1 ]; then | ||
236 | echo | ||
237 | echo "WARNING: Trailing white space detected at these locations" | ||
238 | egrep -nH --color -e "^\+.*\s+$" $ODIR/* | ||
239 | fi | ||