Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1385980

RE: [PATCH] checkpatch: Add support to check already applied git commits

From "Du, Changbin" <changbin.du@intel.com>
Newsgroups linux.kernel
Subject RE: [PATCH] checkpatch: Add support to check already applied git commits
Date 2016-04-25 04:30 +0200
Message-ID <rrErD-6Ag-1@gated-at.bofh.it> (permalink)
References <rrBtL-3Zv-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

> From: Joe Perches [mailto:joe@perches.com]
> Sent: Monday, April 25, 2016 7:12 AM
> To: Andrew Morton <akpm@linux-foundation.org>; Andy Whitcroft
> <apw@canonical.com>
> Cc: Du, Changbin <changbin.du@intel.com>; linux-kernel@vger.kernel.org
> Subject: [PATCH] checkpatch: Add support to check already applied git
> commits
> 
> It's sometimes useful to scan already committed patches.
> 
> Add --git <revision range> to scan specific or multiple commits.
> 
> Single commits are scanned with
> 	--git <rev>
> Multiple commits are scanned with
> 	--git <range>
> 	--git <commit>-<count>
> 
> Signed-off-by: "Du, Changbin" <changbin.du@intel.com>
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
> 
> A few miscellaneous improvements to Changbin's original patch:
> 
> o Don't exec git for each <commit>-<count>,
>   use a single "git log -<count> <commit>"
> o Consolidate the git exec for the <range> and <commit>-<count> variants
> o Output 12 character commit hash ids
> o Don't scan git commit merges
> o Use -M to reduce the size of rename commits
> 

Thanks, it has been much more better now. I like this new one. 
This is my first time write a Perl script. :)

Also thanks for Sebastian's explanation, I got this idea just
because I had the same use case with you.

Best Regards,
Du, Changbin

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] checkpatch: Add support to check already applied git commits Joe Perches <joe@perches.com> - 2016-04-25 01:20 +0200
  RE: [PATCH] checkpatch: Add support to check already applied git  commits "Du, Changbin" <changbin.du@intel.com> - 2016-04-25 04:30 +0200

csiph-web