From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751900AbaHJVdW (ORCPT ); Sun, 10 Aug 2014 17:33:22 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45188 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751854AbaHJVdU (ORCPT ); Sun, 10 Aug 2014 17:33:20 -0400 Date: Sun, 10 Aug 2014 14:35:00 -0700 From: Andrew Morton To: Joe Perches Cc: Geert Uytterhoeven , LKML , Git Mailing List Subject: Re: [PATCH] checkpatch: Add test for commit id formatting style in commit log Message-Id: <20140810143500.2d556ae9.akpm@linux-foundation.org> In-Reply-To: <1407706081.4082.21.camel@joe-AO725> References: <20140702130210.fd40d67f0819cfb5f3e9e5ca@linux-foundation.org> <1404331746.14624.95.camel@joe-AO725> <20140702131534.c613f55f79519b3862f79e40@linux-foundation.org> <1404338448.14741.8.camel@joe-AO725> <1407706081.4082.21.camel@joe-AO725> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.18.9; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 10 Aug 2014 14:28:01 -0700 Joe Perches wrote: > > On Thu, Jul 3, 2014 at 12:00 AM, Joe Perches wrote: > > > Commit logs have various forms of commit id references. > > > > > > Try to standardize on a 12 character long lower case > > > commit id along with a description of parentheses and > > > the quoted subject line > > > > > > ie: commit 0123456789ab ("commit description") > > > > Now this is in mainline, checkpatch starts complaining about my "too long" > > (40 chars) commit IDs in commit messages :-( > > > > 40 chars may be too long (but it's quick to copy-and-paste, as "git show" > > shows that by default), but 12 sounds a bit short, as that's only 48 bits. > > Right now, this test allows 12 to 16 byte length commit ids > without emitting a warning. > > Andrew wanted this test, I don't care how long the commit id > is in the commit log. Well, I mainly wanted to stop having to add "commit description" when people forget it. The length check was perhaps a bit anal. How about we make it "12 or more"?