Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp784907rdb; Fri, 17 Nov 2023 12:38:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8nzRGGziM68ufIs+eNBZvxhyKA9m7Ybx5rATq4whhrxE5y+QLKzxXF8UvmejAs2Vk87r+ X-Received: by 2002:a17:902:f604:b0:1ce:5dd8:2f2f with SMTP id n4-20020a170902f60400b001ce5dd82f2fmr1199691plg.30.1700253491112; Fri, 17 Nov 2023 12:38:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700253491; cv=none; d=google.com; s=arc-20160816; b=YjUd2nG0PYkiZt1wCwDep0J569X8p1D1iqICfIUHyHvjBnczr4D4Z0WwnzW3PyRtJT ozP74gJOj314wFqvn+HrrzfcmmKecp8bq8C33jo7zDZ9JKZoeO5Bjbro2+jGA6lHjckl BWa0yDXXYS4T5fyvlPawykbGkOYPpRaQgnWxKGmmK0KImSYwuY/z5sWrqz0KRDzzoY+9 pg/FzTSRQAB1oyPkVY/RUXM6ED6E2WP1rIlZh8fECGaGDEmIqDG5yam+nm09ltwonyyw bsfSEIFP5rixrxx33Lt5Z4mH3A2V+iz2QxA+QOHzVQ2fMjHWKD+S8b+rjctz7NZ9B/Ld U5YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=q6+O3Z4W8hngyfTtdcFQ2nq/97As5//xLdkJImOc1vk=; fh=QSBLK+ZIkNfT++QS8j88pXwZB1rhZFWsMp4fG1j0JUI=; b=dqy/V6P8ojioOz5uMzFJMw+dDW2GXWh3VGrpp3PtTqsqNfoX77Q7UdmBRjYuJW3JqS 7l4EgxwshjpCJKagdmVBCjk9QahjgkS0cOv/hEwv63swG8Wq5T/PZqFi8cRHTNENwOWk LJ+iSAQ7/RYONVRpTORCovBs8j+USIcH8OyJOwrdukH/rSLPmlLKZfwkJxGOKwSfsFKQ gtpJ8t5Awwth0046/NSru37ylNUqBN4rxCDh+UsmMcrVuIKkT2mCCBb6fe+Y7Tp4CKMq OWg9ggDLioDbt65lLY2K2nO/T5jGwvsRDYbK5HREPP2ZNyrpr9vtzRq/clSgtPqTQ/cz p1zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=ZmEhFO6Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t14-20020a170902e84e00b001cc4107a515si2725713plg.48.2023.11.17.12.38.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 12:38:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=ZmEhFO6Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id F03D18047059; Fri, 17 Nov 2023 12:38:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229535AbjKQUiI (ORCPT + 99 others); Fri, 17 Nov 2023 15:38:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232195AbjKQUiG (ORCPT ); Fri, 17 Nov 2023 15:38:06 -0500 Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6612A7; Fri, 17 Nov 2023 12:38:03 -0800 (PST) Received: from localhost (unknown [98.53.138.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 806372F3; Fri, 17 Nov 2023 20:38:03 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 806372F3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1700253483; bh=q6+O3Z4W8hngyfTtdcFQ2nq/97As5//xLdkJImOc1vk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ZmEhFO6ZE6ao4whuNt0YrEx2H6O09JfyTSPa4KoV8a/TlXELtBT2Hom8njwtwaRLN MUE67PxGJ6Vo93jsiPhE2QNw1WWBUBliubzmtywl8G6qfX+WqEp089obgjkA+Puttb iWY9vnX+6I1pbOS93M1t4GlVV+2JEpxor+FCR7rRWqzfF8shpLrPLkrndSGZR0LjUN OgnJhi03JviL8NMRSFxErcDvm/9gRYLM3F3wFINFE5Xo3avMuFN5UUHwcWP8z/BnbQ qsIOCdINIQfJtQCot3Rdyl5XQfGa24DWhzsFgqGTsdcBbw6bUodjKNw6weJFHmJiqR FMP3yuSrVL3FQ== From: Jonathan Corbet To: Vegard Nossum Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Vegard Nossum Subject: Re: [PATCH RFC] docs: automarkup: linkify git revs In-Reply-To: <20231027115420.205279-1-vegard.nossum@oracle.com> References: <20231027115420.205279-1-vegard.nossum@oracle.com> Date: Fri, 17 Nov 2023 13:37:53 -0700 Message-ID: <87h6lk86am.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 12:38:10 -0800 (PST) Vegard Nossum writes: > There aren't a ton of references to commits in the documentation, but > they do exist, and we can use automarkup to linkify them to make them > easier to follow. > > Use something like this to find references to commits: > > git grep -P 'commit.*[0-9a-f]{8,}' Documentation/ > > Also fix a few of these to standardize on the exact format that is > already used in changelogs. > > Signed-off-by: Vegard Nossum > --- > Documentation/arch/x86/boot.rst | 2 +- > Documentation/bpf/btf.rst | 6 ++---- > Documentation/doc-guide/sphinx.rst | 9 +++++++++ > Documentation/livepatch/callbacks.rst | 4 ++-- > Documentation/networking/snmp_counter.rst | 16 ++++++---------- > Documentation/sphinx/automarkup.py | 20 +++++++++++++++++++- > 6 files changed, 39 insertions(+), 18 deletions(-) That seems to work nicely. Applied, thanks. jon