[stgt] [PATCH 2/2] scripts/checkpatch.pl modified for stgt, no tree as default

nezhinsky at gmail.com nezhinsky at gmail.com
Thu Jul 19 10:04:59 CEST 2012


From: Alexander Nezhinsky <nezhisnky at gmail.com>


Signed-off-by: Alexander Nezhinsky <alexandern at mellanox.com>
---
 scripts/checkpatch.pl |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 2a53a53..b1281ac 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -15,7 +15,7 @@ my $V = '0.32';
 use Getopt::Long qw(:config no_auto_abbrev);
 
 my $quiet = 0;
-my $tree = 1;
+my $tree = 0;
 my $chk_signoff = 1;
 my $chk_patch = 1;
 my $tst_only;
@@ -39,15 +39,15 @@ sub help {
 
 	print << "EOM";
 Usage: $P [OPTION]... [FILE]...
-Version: $V
+Version: $V (modified for stgt)
 
 Options:
   -q, --quiet                quiet
-  --no-tree                  run without a kernel tree
+  --tree                     run with a kernel tree
   --no-signoff               do not check for 'Signed-off-by' line
   --patch                    treat FILE as patchfile (default)
   --emacs                    emacs compile window format
-  --terse                    one line per report
+  -t, --terse                one line per report
   -f, --file                 treat FILE as regular source file
   --subjective, --strict     enable more subjective tests
   --ignore TYPE(,TYPE2...)   ignore various comma separated message types
@@ -97,11 +97,11 @@ if (-f $conf) {
 
 GetOptions(
 	'q|quiet+'	=> \$quiet,
-	'tree!'		=> \$tree,
+	'tree+'		=> \$tree,
 	'signoff!'	=> \$chk_signoff,
 	'patch!'	=> \$chk_patch,
 	'emacs!'	=> \$emacs,
-	'terse!'	=> \$terse,
+	't|terse!'	=> \$terse,
 	'f|file!'	=> \$file,
 	'subjective!'	=> \$check,
 	'strict!'	=> \$check,
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list