Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp807353rdb; Tue, 5 Dec 2023 23:46:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGGjzzADhB4SJQevNggYYSLuk9cIcYDWegyAx/pzfmFfp3a4DMtjRWjW4RtqSIeWZnf2yG X-Received: by 2002:a05:6808:8c8:b0:3b8:b5d0:e7da with SMTP id k8-20020a05680808c800b003b8b5d0e7damr597593oij.1.1701848787554; Tue, 05 Dec 2023 23:46:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701848787; cv=none; d=google.com; s=arc-20160816; b=NeFciHjcbXv5W0B5fXIUsjX9cyw2lD8B9hNQKUX9zWUYufpNQG/NyWfK6vFUKBW4a+ R4zBL9wHZ8zMV3569u+H5iNZ5F5dKekUNfmtgX1fowsXaWEa82dljn4yvzfblEtSb9if KyIQwKtsM8d6Sob7A3yPPJm4OgvB/Wcj8mpoT/v/KdYCW60Fdd1J90DZKGoXma/ZjR0d N3P+M40jVQsuoqv2+4thLNhGkxk7hp31k3SblNyWC+aKzviDXbxpB0goxKg5RZxhhVZ2 QEEynt09mFu8/qKjt/TAM87E7uo95SWrcDhouCrSzTy84HVxdkPb6DHSCvYOwv1XJEri VCWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=ZAboBnREOV3ZDD3+7M8zF+gWnD1yBvgAg1CZf70tr8E=; fh=DB5V1N4fPAreVWtTnNO6dJ1AqjMIR306TYmZfNkNaOI=; b=D0cNP6LDaljI5Z6EbHZGcz6FWPueH4R3Y64b8SONI3sQABYAo3ZxTrWCqWQ22jl93F cu4dk/gPVXDT09a41dZmTAbarc9zjzr+SgsAN4oiJGBG29TBAqeBmOQXXNAxNh6imKbX o5imzSbzXjwkN1FfNy5yaToH7+2+t/EljaQwPZPFoWTr6mDSJsrIxAksYGt7QffOuV7b kHgA67HK8r31Iu20rce33YXB70DwFBOpGJ23A98sALqGoeqxmVtD8v0C46zeZVmj67yv HCJJFbfEiQaKMw/X8yvOXuBBV6MGqFlNl2EQDxb3jgpZF5n7rgrkb+7MaenLudDbPdMn 5iSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id v16-20020a63f850000000b005be1ee5be76si11127838pgj.373.2023.12.05.23.46.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 23:46:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2396D80BC520; Tue, 5 Dec 2023 23:46:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376960AbjLFHpy convert rfc822-to-8bit (ORCPT + 99 others); Wed, 6 Dec 2023 02:45:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376953AbjLFHpl (ORCPT ); Wed, 6 Dec 2023 02:45:41 -0500 Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2C78D59 for ; Tue, 5 Dec 2023 23:45:46 -0800 (PST) Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-5cd81e76164so73157977b3.1 for ; Tue, 05 Dec 2023 23:45:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701848745; x=1702453545; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6Cle4fHqg4gCS8JBdXAO9v2hIfG4HtseTfjze5E2L0s=; b=kh3NKwjUw2So3Y3bpBE3LcrllyyauzO4bNsTU9GEvBv2nqQRto2U+3+1AN2C14qF7v Ht5xiAO+aNbqmSC8E2cnAiouOdkrYhaiKMNd7/fW6AGR6bzCbElSoyv1/PlX5SiVklRt H4bmBVkyO+392MAW5FgPyOWgdEYL61Khgtf6Pqqi1qcsunnp9sUZut65xzvKL9xqVhtH orbbsOE7qQL9qzty+TaG8VefqrOgcucgzr2lAKI4tawql4o64uNhD5vboiEVQqn2y8c4 nit5B/RGaEalqe+nJWxjiWMAFZxK6PCcG4e2GfqHoQhomwoTWG+oZykcwXIaX8eHhBEu cT1w== X-Gm-Message-State: AOJu0YxYETcAFpZeQ81d2nXNo8ZHFJKqrK1YcoPc5aFgpG7JbB1jtwlP RPxI0JXxH3BhNAHGEoLiDSTBR8Bqe2ZW+w== X-Received: by 2002:a81:d109:0:b0:5d7:1940:dd8d with SMTP id w9-20020a81d109000000b005d71940dd8dmr310198ywi.99.1701848745639; Tue, 05 Dec 2023 23:45:45 -0800 (PST) Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com. [209.85.128.182]) by smtp.gmail.com with ESMTPSA id j128-20020a0de086000000b005cb1bf4d466sm4793700ywe.82.2023.12.05.23.45.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Dec 2023 23:45:43 -0800 (PST) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-5cd81e76164so73157517b3.1 for ; Tue, 05 Dec 2023 23:45:42 -0800 (PST) X-Received: by 2002:a81:c80e:0:b0:5d7:486d:1472 with SMTP id n14-20020a81c80e000000b005d7486d1472mr306720ywi.19.1701848742512; Tue, 05 Dec 2023 23:45:42 -0800 (PST) MIME-Version: 1.0 References: <62f82b0308de05f5aab913392049af15d53c777d.1701804489.git.geert+renesas@glider.be> <7c353e1ba4025dfce4c4789033f5779c4371f048.camel@perches.com> In-Reply-To: <7c353e1ba4025dfce4c4789033f5779c4371f048.camel@perches.com> From: Geert Uytterhoeven Date: Wed, 6 Dec 2023 08:45:30 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] checkpatch: Also accept commit ids with 13-40 chars of sha1 To: Joe Perches Cc: =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn , Louis Peens , Simon Horman , Linus Torvalds , Junio C Hamano , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 05 Dec 2023 23:46:25 -0800 (PST) Hi Joe, On Tue, Dec 5, 2023 at 9:05 PM Joe Perches wrote: > On Tue, 2023-12-05 at 20:34 +0100, Geert Uytterhoeven wrote: > > Documentation/dev-tools/checkpatch.rst says: > > > > **GIT_COMMIT_ID** > > The proper way to reference a commit id is: > > commit <12+ chars of sha1> ("") > > It's not just checkpatch. > > Documentation/process/submitting-patches.rst:``git bisect``, please use the 'Fixes:' tag with the first 12 characters of > > > So that would need to be updated as well. And: Documentation/process/maintainer-tip.rst: - Fixes: 12char-SHA1 ("sub/sys: Original subject line") but the example uses 15: Documentation/process/maintainer-tip.rst: Fixes: abcdef012345678 ("x86/xxx: Replace foo with bar") Documentation/process/researcher-guidelines.rst: Fixes: aaaabbbbccccdddd ("Introduce support for FooBar") 16 Documentation/process/submitting-patches.rst: Commit e21d2170f36602ae2708 ("video: remove unnecessary 20 > And 12 still has quite some headroom. > > $ git rev-list --all --abbrev=0 --abbrev-commit | \ > awk '{ a[length] += 1 } END { for (len in a) print len, a[len] }' > 5 107 > 6 684276 > 7 505734 > 8 41769 > 9 2665 > 10 174 > 11 8 How many collisions do you need? These will be dereferenced years from now. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds