Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2509177rdb; Fri, 8 Dec 2023 10:04:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtkj+XWYde7/hl2TjGWXxM1jevZV5J2duexa9kTFVYKR0xRBjeTVRH7Kyh1IQptY6SroYC X-Received: by 2002:a17:90b:1c09:b0:286:6cc1:7800 with SMTP id oc9-20020a17090b1c0900b002866cc17800mr494261pjb.67.1702058695121; Fri, 08 Dec 2023 10:04:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702058695; cv=none; d=google.com; s=arc-20160816; b=hPjAabY3vGmhn9kb7NxVwWJd9PLb+2uCUAXBoZzTz83vOOHvtcnqKyyb9ykpSIEDZr gJVticukXRje8OsHpP5hNt+BaB90Dcn1Dcu5tjfc6LHiBz9V41ybScljIxDunYHtdpTs Xn3dZA5moayxH+2g6PkxTeUaS/nOZZJ7UBDs0ajusUVv0tDZeg5CJuWqkHR/UgmyT7ah Uguylj4XsqZFGfakYLc88yX7Am8FU7mBYJtug7AltYHv+SeCt1u+OVuwbzRuuSWZ1MjI 60Zl2uHEkcaPokmv2ZA+Rx2LEZsUMJboct6iGryrmdzoPsQmZa/utB9gPG0fB18e5hYq zrDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:to:subject:message-id :date:from:in-reply-to:references:mime-version:dkim-signature; bh=CZQgPsmonl7Wi7hg4g+zI/qzT5CWeAjHhow4pzmW6d4=; fh=q9+z8V0Q4q/h4ufG1nm2EcWledkO8V8WMGRxhRZV7/I=; b=U8a4AusDXap5Cw/A4AXdj+dNUdBnLv+NnRAyKdUwDqS3ZizTRlchaauzmPuP5giHD2 ByvdIY8ysOcbBusDxn2dSxDKKpQcpzfiZWyRYcJnc/zCCcALVxkxUz1AkNnl230fzJAB 29fwqkCO5eCYYhPv6s0oS/4gxN+fO31URPw6ShKDSw+iPYcCoUoFFFkBlkLX4jTkGFxn nYuGy86OkdwcckKh/hSU3+xFyBcojLHV8z+VyikNWtkupB+W4ZKkfiIh5d0QHpInQT6h ZmPvWva3Hjy2iJFo0FNE/gamm5CzVY6sdZAvkNe5vztKMeBRWKr9MODzae2Le2Lkf2xR hIxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e1nkeHN3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ms7-20020a17090b234700b0028558f4e661si1998579pjb.145.2023.12.08.10.04.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 10:04:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e1nkeHN3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0B29D81C50A2; Fri, 8 Dec 2023 10:04:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574608AbjLHSEb (ORCPT + 99 others); Fri, 8 Dec 2023 13:04:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235894AbjLHSE3 (ORCPT ); Fri, 8 Dec 2023 13:04:29 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 801DE10D8 for ; Fri, 8 Dec 2023 10:04:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702058674; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CZQgPsmonl7Wi7hg4g+zI/qzT5CWeAjHhow4pzmW6d4=; b=e1nkeHN3rxldvn6BtaVEEmalXMy/h1SLAA5eZv2CGLyUm3OhLjLXNJrSXGkLsXAIn1eh12 rnt3HCM8ireXtTdxRNbhPdxGROXsjRMhT74lEwQz+z3VRV5FRic6FRYKrcSsdMblO0UH9z /GStxonRUs38WpIoHl5/EBXOGS2D3hw= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-442-zi2y-Qi-Ok2-d_rMfNPhQg-1; Fri, 08 Dec 2023 13:04:33 -0500 X-MC-Unique: zi2y-Qi-Ok2-d_rMfNPhQg-1 Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-4259975e20dso14320671cf.0 for ; Fri, 08 Dec 2023 10:04:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702058673; x=1702663473; h=content-transfer-encoding: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=CZQgPsmonl7Wi7hg4g+zI/qzT5CWeAjHhow4pzmW6d4=; b=DddQcc3iLk1bbErYplokTln0tIJHfE70642H31YydYvcqz6hxQxIkjiZ2TDVH9BV2z Kdk/Z0ojfs4YOgN+G1ELFHCezKMsja6D2T1THohsiZpoGtxSgBv2LOxR+/Fq51bBYW/H Ce6iTjZT0GPJ7QJHpjJ3nuuYdsCN4LBpHPu735Dba2GSYGOcPSYMDvjmIuLt61M/E4g1 NyPTA5AH3qVhdR1ngkuswdCbsGwPg4OBqsV6rNHQgt60vZJjR5SHouy9FJBuxbToX+e0 gabgshp2gwfu96AyJpsaaHNuuNylHoQ4Pk85EMnqvX2mxm0UoK1tXGouWcrppPFaBfo1 Pigw== X-Gm-Message-State: AOJu0Ywip4edmiqnrCZ0CORQa48I7sv1nE5/W7tWoAc8OJehZfx0iEPR 3RPHGkvsCCryxbyvRooVZEDKBelqOrGLFpCvOK0mbL1Zq0WQ8QUvGZYD51tdvmXVuBmvdxoHDMz pqWTNyGFMq4ywRUHpUvbND5QxkcdcqtxVSxgD/b9j X-Received: by 2002:ac8:57c3:0:b0:425:4043:8d3c with SMTP id w3-20020ac857c3000000b0042540438d3cmr493110qta.87.1702058672798; Fri, 08 Dec 2023 10:04:32 -0800 (PST) X-Received: by 2002:ac8:57c3:0:b0:425:4043:8d3c with SMTP id w3-20020ac857c3000000b0042540438d3cmr493094qta.87.1702058672516; Fri, 08 Dec 2023 10:04:32 -0800 (PST) MIME-Version: 1.0 References: <20231205182853.40627-1-leobras.c@gmail.com> In-Reply-To: From: Leonardo Bras Soares Passos Date: Fri, 8 Dec 2023 15:04:16 -0300 Message-ID: Subject: Re: [RESEND RFC PATCH v4 1/1] scripts: Introduce a default git.orderFile To: Leonardo Bras , Masahiro Yamada , Randy Dunlap , Nathan Chancellor , Nick Desaulniers , Mauro Carvalho Chehab , Leonardo Bras , 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=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 fry.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 (fry.vger.email [0.0.0.0]); Fri, 08 Dec 2023 10:04:48 -0800 (PST) On Fri, Dec 8, 2023 at 10:25=E2=80=AFAM Nicolas Schier = wrote: > > On Tue, Dec 05, 2023 at 03:28:51PM -0300, Leonardo Bras wrote: > > From: Leonardo Bras > > > > 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 = the > > best ordering easier. > > > > Signed-off-by: Leonardo Bras > > Acked-by: Randy Dunlap > > --- > > > > Please provide feedback on what else to add / remove / reorder here! > > > > Changes since RFCv3: > > - Added "*types.h" matching so type headers appear before regular heade= rs > > - 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 | 34 ++++++++++++++++++++++++++++++++++ > > 1 file changed, 34 insertions(+) > > create mode 100644 scripts/git.orderFile > > > > diff --git a/scripts/git.orderFile b/scripts/git.orderFile > > new file mode 100644 > > index 000000000000..7cef02cbba3c > > --- /dev/null > > +++ b/scripts/git.orderFile > > @@ -0,0 +1,34 @@ > > +# 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 > > + > > +# build system > > +*Kconfig* > > +*Kbuild* > > +*Makefile* > > +*.mak > > +*.mk > > I'd like to see 'scripts/*' here, too, to have the build system stuff > together. Possibly it makes sense to add .gitignore files here too. > > Kind regards, > Nicolas Sure, I will add it and send a v5 soon. Thanks! > > > > + > > +# semantic patches > > +*.cocci > > + > > +# headers > > +*types.h > > +*.h > > + > > +# code > > +*.c > > -- > > 2.42.0 > > >