Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753386AbcDYCXY (ORCPT ); Sun, 24 Apr 2016 22:23:24 -0400 Received: from mga09.intel.com ([134.134.136.24]:18614 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753302AbcDYCXX convert rfc822-to-8bit (ORCPT ); Sun, 24 Apr 2016 22:23:23 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,530,1455004800"; d="scan'208";a="939354263" From: "Du, Changbin" To: Joe Perches , Andrew Morton , Andy Whitcroft CC: "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] checkpatch: Add support to check already applied git commits Thread-Topic: [PATCH] checkpatch: Add support to check already applied git commits Thread-Index: AQHRnn7EpELiE61sX0Cdz9QCtvD6vp+Z82lQ Date: Mon, 25 Apr 2016 02:23:17 +0000 Message-ID: <0C18FE92A7765D4EB9EE5D38D86A563A05D1BFCA@SHSMSX103.ccr.corp.intel.com> References: <8a509a881fbf54b3a7e870bd1655688260ea47a7.1461539133.git.joe@perches.com> In-Reply-To: <8a509a881fbf54b3a7e870bd1655688260ea47a7.1461539133.git.joe@perches.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1310 Lines: 42 Hi, > From: Joe Perches [mailto:joe@perches.com] > Sent: Monday, April 25, 2016 7:12 AM > To: Andrew Morton ; Andy Whitcroft > > Cc: Du, Changbin ; 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 to scan specific or multiple commits. > > Single commits are scanned with > --git > Multiple commits are scanned with > --git > --git - > > Signed-off-by: "Du, Changbin" > Signed-off-by: Joe Perches > --- > > A few miscellaneous improvements to Changbin's original patch: > > o Don't exec git for each -, > use a single "git log - " > o Consolidate the git exec for the and - 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