Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1385980
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Du, Changbin" <changbin.du@intel.com> |
| Newsgroups | linux.kernel |
| Subject | RE: [PATCH] checkpatch: Add support to check already applied git commits |
| Date | Mon, 25 Apr 2016 04:30:01 +0200 |
| Message-ID | <rrErD-6Ag-1@gated-at.bofh.it> (permalink) |
| References | <rrBtL-3Zv-3@gated-at.bofh.it> |
| X-Extloop1 | 1 |
| X-Ironport-Av | E=Sophos;i="5.24,530,1455004800"; d="scan'208";a="939354263" |
| Thread-Topic | [PATCH] checkpatch: Add support to check already applied git commits |
| Thread-Index | AQHRnn7EpELiE61sX0Cdz9QCtvD6vp+Z82lQ |
| Accept-Language | en-US |
| Content-Language | en-US |
| X-Ctpclassification | CTP_IC |
| X-Titus-Metadata-40 | eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjYzNGIzN2ItMzU0Ny00YzZhLTg2ZTEtMDU5YWFjMDIwNjUzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkdQVFQrWlQ3aTY1OTZiOHNiZUZLREt6WGpRZWE3MzBUR1MyY2Q5V3htaFE9In0= |
| X-Originating-IP | [10.239.127.40] |
| Content-Type | text/plain; charset="us-ascii" |
| Content-Transfer-Encoding | 8BIT |
| MIME-Version | 1.0 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 42 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> |
| X-Original-Date | Mon, 25 Apr 2016 02:23:17 +0000 |
| X-Original-Message-ID | <0C18FE92A7765D4EB9EE5D38D86A563A05D1BFCA@SHSMSX103.ccr.corp.intel.com> |
| X-Original-References | <8a509a881fbf54b3a7e870bd1655688260ea47a7.1461539133.git.joe@perches.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1385980 |
Show key headers only | 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 | Next — Previous in thread | Find similar | Unroll 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