* [Patch v2 0/1] a commit for detecting trailing whitespace
@ 2012-12-11 17:27 nitin.a.kamble
2012-12-11 17:28 ` [Patch v2 1/1] create-pull-request: detect trailing white space nitin.a.kamble
0 siblings, 1 reply; 2+ messages in thread
From: nitin.a.kamble @ 2012-12-11 17:27 UTC (permalink / raw)
To: Openembedded-core, daniel, martin.jansa, richard.purdie
From: Nitin A Kamble <nitin.a.kamble@intel.com>
This v2 commit makes the egrep's output colorful with the --color option, and
output is made silent when the patches are clean wrt trailing white space.
Detecting of the mixed white space was discussed on the mailing list, but
the discussion did not reach to a final agreement, so this commit is not adding
that detection yet.
Thanks,
Nitin
The following changes since commit c607095894cab60493ddfc4b967b0325e1c313b4:
bitbake: Revert "BBHandler: Ensure parser state engine is correctly reset for new parsing" (2012-12-07 18:09:01 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib nitin/misc
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=nitin/misc
Nitin A Kamble (1):
create-pull-request: detect trailing white space
scripts/create-pull-request | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
--
1.7.3.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Patch v2 1/1] create-pull-request: detect trailing white space
2012-12-11 17:27 [Patch v2 0/1] a commit for detecting trailing whitespace nitin.a.kamble
@ 2012-12-11 17:28 ` nitin.a.kamble
0 siblings, 0 replies; 2+ messages in thread
From: nitin.a.kamble @ 2012-12-11 17:28 UTC (permalink / raw)
To: Openembedded-core, daniel, martin.jansa, richard.purdie
From: Nitin A Kamble <nitin.a.kamble@intel.com>
Add logic in the create-pull-request to detect and warn about the
trailing white space inserted by patches.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
---
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 9a8913d..9692bf1 100755
--- a/scripts/create-pull-request
+++ b/scripts/create-pull-request
@@ -229,3 +229,11 @@ Review their content, especially the summary mail:
When you are satisfied, you can send them with:
send-pull-request -a -p $ODIR
EOM
+
+# Check the patches for trailing white space
+egrep -q -e "^\+.*\s+$" $ODIR/*
+if [ $? -ne 1 ]; then
+ echo
+ echo "WARNING: Trailing white space detected at these locations"
+ egrep -nH --color -e "^\+.*\s+$" $ODIR/*
+fi
--
1.7.3.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-11 17:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-11 17:27 [Patch v2 0/1] a commit for detecting trailing whitespace nitin.a.kamble
2012-12-11 17:28 ` [Patch v2 1/1] create-pull-request: detect trailing white space nitin.a.kamble
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox