Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3101140rdb; Sat, 9 Dec 2023 11:14:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHbs/W133+ZwO1fAEROxmM+ttLGuNqDtN59qP9XHzTmmNv2LqWupNc7GoMgzEzv5nBsV0Qt X-Received: by 2002:a05:6870:ef0e:b0:1ea:2e2c:e9e7 with SMTP id qq14-20020a056870ef0e00b001ea2e2ce9e7mr2398922oab.59.1702149283931; Sat, 09 Dec 2023 11:14:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702149283; cv=none; d=google.com; s=arc-20160816; b=kZ+F5nwXFn/6Es6Xwz1xCS2bPwzsrQ7IEOAn1PN9GZjgTwyJxLSbekZqeKDLetkJBl K4ruwmFH5q+SmXSRuA4/zF12m+IcXQk4WQxP3q4pz0S1DpFWeTGz6r7UPXW50V4AzsSa Y5NMfBpwItIAu1lls08KG5JtY17v7ihnl54e4uoww+3bah7xR2PG7aveG9tTcmOKT41L VtGf7ug/c7MjDsvbPwewviLU4OzaecBksUcpyjiSqoUULekZ19e0M6t6MSoCd3MIPbmi xC636zsa6KauvVwtuoKFAclrhIxI8Llpd4FmgTnZf3pTO/qcvJJbPu39SM3qTP1DsVZH qLfg== 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 :dkim-signature; bh=3NOMiNRe2nl7oYtGelU0N85eHpoLZ05Or23ck4Z3tUc=; fh=RtH2UcdkbYNdSZJTp7DX/cBvYw/pu3wiSr9ELuBokIc=; b=T9JnIA9ksWdhWwIdeydave5YUwJrzBN074sn54yRW9vxfa6Ixr8SaggVFiravhzwot 0EYs2zH0udgUuGlVQ05D8eW55qP1EWQ79LFjiTuwjzAQ4C9mJ/cEZQTeZU640VDQ1y96 rVYsRpDb2wmXFkL8nq4lVaNTlzw7tkDNkV2MU91Cj6YE/M3AcwqXc1W7nAcuyoX2u4SR Djy9sk5fcwvlSLJ4jHZHFETIIkvoqmIV3xbd5nBwMrZWMnDNkweBfbcjBBfkEZ3VYorP F8oaEVOsqB92RWsGBJwEbsyGD3mHnWxmYIqOzFuCfTAQ2V9K7mmEDe8m1cuZzhrV4mbM 3DAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JCI488Fq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id c24-20020a630d18000000b005c678d5eeccsi3379829pgl.158.2023.12.09.11.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 11:14:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JCI488Fq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 06DBB805F2DA; Sat, 9 Dec 2023 11:14:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229518AbjLITO2 (ORCPT + 99 others); Sat, 9 Dec 2023 14:14:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229453AbjLITO0 (ORCPT ); Sat, 9 Dec 2023 14:14:26 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DED295 for ; Sat, 9 Dec 2023 11:14:32 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A931C433C9; Sat, 9 Dec 2023 19:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702149272; bh=o0ozzHhu+CZMfnQcW6TqO/dFGDY8qG0C8est7GCCFDc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=JCI488Fq0ln6JmyHv7+rNmX4aj6PqwAma4ZC1HkdfCeJ411b7f1TwryI3E3y4o4O6 cpTnrIuym6c8bpeGB40Apf9m4SLrw4rXnsuePFCmBuwnTJcQLQcUodmnx8sKNcpuHx W8vWKn3o/AdxLb2JH83nmuOFBbqAPfO1vjltnhRf0LNViL8qPYPMGxLqZatOmLWp0N mhyC4FNJspIwlt5JQnmi8o3+TLK/M6UtfqCkRou3u4V2arqQz1oL5cFW+vdY+Jg8+F Ncx8XsEebz62F2KbQBp5WiIu7/f6N91+8p7a+zmOcNd3VKBZR1MZdb4e9gA05BNUoK 4O+uQfN6rqxyg== Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-1fa37df6da8so2149601fac.2; Sat, 09 Dec 2023 11:14:32 -0800 (PST) X-Gm-Message-State: AOJu0Yxn93rsluT7nZW91Z1Qc6vbagg0tCiN/LwoD0U+OPoom2GjQN4o zvK+kXY7vmk+gbekHMl8O7crgEQzSo81vz53wM0= X-Received: by 2002:a05:6870:638b:b0:1fa:f625:e23d with SMTP id t11-20020a056870638b00b001faf625e23dmr2688256oap.28.1702149271595; Sat, 09 Dec 2023 11:14:31 -0800 (PST) MIME-Version: 1.0 References: <20231208181802.88528-3-leobras@redhat.com> In-Reply-To: <20231208181802.88528-3-leobras@redhat.com> From: Masahiro Yamada Date: Sun, 10 Dec 2023 04:13:54 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v5 1/1] scripts: Introduce a default git.orderFile To: Leonardo Bras Cc: Randy Dunlap , Nicolas Schier , Nathan Chancellor , Nick Desaulniers , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 morse.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 (morse.vger.email [0.0.0.0]); Sat, 09 Dec 2023 11:14:41 -0800 (PST) On Sat, Dec 9, 2023 at 3:19=E2=80=AFAM Leonardo Bras w= rote: > > When reviewing patches, it looks much nicer to have some changes shown > before others, which allow better understanding of the patch before the > the .c files reviewing. > > Introduce a default git.orderFile, in order to help developers getting th= e > best ordering easier. > > Signed-off-by: Leonardo Bras > Acked-by: Randy Dunlap > > --- > Changes since RFCv4: > - Added scripts/* into "build system" section > - Added "git-specific" section with this script and .gitignore > - Thanks for this feedback Nicolas! > > Changes since RFCv3: > - Added "*types.h" matching so type headers appear before regular headers > - Removed line ends ($) in patterns: they previously provided a > false-positive > - Fixed build patterns to allow matching Kconfig, Kbuild & Makefile > in any subdirectory > > Changes since RFCv2: > - Fixed licence comment to from /**/ to # > - Fixed filename in how-to comment > - Fix build order: Kconfig -> Kbuild -> Makefile > - Add *.mk extension > - Add line-ends ($) to make sure and get the correct extensions > - Thanks Masahiro Yamada for above suggestions! > - 1 Ack, thanks Randy! > > Changes since RFCv1: > - Added Kconfig* (thanks Randy Dunlap!) > - Changed Kbuild to Kbuild* (improve matching) > > > scripts/git.orderFile | 39 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > create mode 100644 scripts/git.orderFile > > diff --git a/scripts/git.orderFile b/scripts/git.orderFile > new file mode 100644 > index 0000000000000..31649ff53d22c > --- /dev/null > +++ b/scripts/git.orderFile > @@ -0,0 +1,39 @@ > +# SPDX-License-Identifier: GPL-2.0 > + > +# order file for git, to produce patches which are easier to review > +# by diffing the important stuff like header changes first. > +# > +# one-off usage: > +# git diff -O scripts/git.orderFile ... > +# > +# add to git config: > +# git config diff.orderFile scripts/git.orderFile > +# > + > +MAINTAINERS > + > +# Documentation > +Documentation/* > +*.rst > + > +# git-specific > +.gitignore > +scripts/git.orderFile I think scripts/git.orderFile should be part of "scripts/*" below. > + > +# build system > +*Kconfig* > +*Kbuild* > +*Makefile* I do not like this because "foo-Makefile-bar" is not a Makefile, but would match "*Makefile*". If you do not use wildcard at all, 'Makefile' will match to the root-dir and sub-directories. Kconfig */Kconfig* Kbuild Makefile *.mak *.mk scripts/* may satisfy your needs mostly. > +*.mak > +*.mk > +scripts/* > + > +# semantic patches > +*.cocci > + > +# headers > +*types.h > +*.h > + > +# code > +*.c > -- > 2.43.0 > --=20 Best Regards Masahiro Yamada