Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C04AFC636CC for ; Sat, 4 Feb 2023 16:58:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232228AbjBDQ6I convert rfc822-to-8bit (ORCPT ); Sat, 4 Feb 2023 11:58:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231355AbjBDQ6G (ORCPT ); Sat, 4 Feb 2023 11:58:06 -0500 Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D28142D67 for ; Sat, 4 Feb 2023 08:58:03 -0800 (PST) Received: from omf11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 8D1C51A03C4; Sat, 4 Feb 2023 16:58:02 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf11.hostedemail.com (Postfix) with ESMTPA id 33C562002C; Sat, 4 Feb 2023 16:58:00 +0000 (UTC) Message-ID: <3afee0493d3718f2e38b6c54dab23d38360cd5d0.camel@perches.com> Subject: Re: [PATCH] checkpatch.pl: Relax commit ID check to allow more than 12 chars From: Joe Perches To: Jonathan =?ISO-8859-1?Q?Neusch=E4fer?= , linux-kernel@vger.kernel.org, Linus Torvalds Cc: Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn Date: Sat, 04 Feb 2023 08:57:59 -0800 In-Reply-To: <78d224a63f6c27bf700d59007b6f3c89746d728c.camel@perches.com> References: <20230129123431.1282427-1-j.neuschaefer@gmx.net> <78d224a63f6c27bf700d59007b6f3c89746d728c.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Stat-Signature: tn5jxtttymtks9rscjht3g9z7wghnbfa X-Rspamd-Server: rspamout06 X-Rspamd-Queue-Id: 33C562002C X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1855V0Wf5GK0uNZM3DquGABqIbYZv6TBNY= X-HE-Tag: 1675529880-423293 X-HE-Meta: U2FsdGVkX19gwgiaSca2JRaEbMRHAcolcYgRwC4uciRprs9AGZ7OphjjUgbheEqH2JU7ib0Q5P1ykREu6rWsag== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2023-01-29 at 09:52 -0800, Joe Perches wrote: > On Sun, 2023-01-29 at 13:34 +0100, Jonathan Neusch?fer wrote: > > By now, `git log --pretty=%h` (on my copy of linux.git) prints commit > > hashes with 13 digits, because of the number of objects. > > > > Relax the rule in checkpatch.pl to allow a few more digits (up to 16). > > NAK without updating the process docs first. btw: it looks like 12 will still be sufficient for awhile yet $ git count total 1154908 $ git -c core.abbrev=5 log --pretty=format:%h | \ perl -nE 'chomp;say length' | sort | uniq -c | sort -n -k2 198 5 664613 6 450955 7 36667 8 2312 9 155 10 8 11