Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2519038rdb; Fri, 8 Dec 2023 10:19:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/N1cQQyv8/Km4Fb1f0CNlh+HCJ5G6vYe9+HcQ9ZCCe0CC10KfX5909w7n5+E9s6UWSxMf X-Received: by 2002:a05:6a21:998a:b0:18f:ea5b:683e with SMTP id ve10-20020a056a21998a00b0018fea5b683emr590824pzb.85.1702059579291; Fri, 08 Dec 2023 10:19:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702059579; cv=none; d=google.com; s=arc-20160816; b=k2tE1I+DSuuPwIH+2n8Hvw8lTXhh9dIsguLfI76Ym33Y4tqKghiwg5AiKP9EOaFHWP lwKBRA9TmF3AXyXDwtan8a+iRUyv6cxEQynUmyyp69diDt97juZkOfMROMGd0ze3K0Uc sVTgJ6oVeGfiuXYqYaxvHXXtSZGFnnuDU1D/ZeVRoQHfI+esFtAMlnCrGw4z2xYU5YnB u/gUVY2bccdcp4Qwl5yJ3bkT4MjM9FIT8h2cM+7WIKklhEVPOo+NoazbTmguAimycVis 7ws6eaT8wFrw7kFTQIdG7JplxCFiXvm+DruiEpGaTh/fbYXmoSsms38LFTi3i7HiB4HR 7/pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=JoC6C0Qt+cZ8XaWFigMJ7rxzgccRqB4PBw4Ey/TxzFU=; fh=F9LrPD1UwuMwYlPSaRErN119oCgL8q6w/VgpD1UeDsc=; b=vX+KwHQ1L7ddmG9nGBfjNyOA1Y+wd1oRxH98DLo+YG7hyDMD6w5mSl2sWMCRnQNSZn zthoKXxF1QbpShc3ziS1VwB9GY69isOAErcXYRTnixTqWa9RJ7RRqIQ07WsVWKKNhCUf 6sGa29lqJ1eujfEZ2FMUn1gHZCMKM7sms1drueoYoVd4z4b/AkIt6buLzJ3dzv/vc9TA n58a9SG3nj82XsPEzP1HxUlK/JxgNBoXBu2iU4ZFRUDOWeu9f5zW5hfcD031Hc9V9Aby B0hx3KB18taX8MsaEHR8bfMqt0KU8uIHQTRbUVqMYf5IESdjmuTpAHf7azukNfU9BIQv x/qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cdmIiX2j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bz39-20020a056a02062700b005c67e10f240si1979691pgb.312.2023.12.08.10.19.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 10:19:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cdmIiX2j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 4D56081E781C; Fri, 8 Dec 2023 10:19:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574560AbjLHSTT (ORCPT + 99 others); Fri, 8 Dec 2023 13:19:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574152AbjLHSTS (ORCPT ); Fri, 8 Dec 2023 13:19:18 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AA3090 for ; Fri, 8 Dec 2023 10:19:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702059563; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=JoC6C0Qt+cZ8XaWFigMJ7rxzgccRqB4PBw4Ey/TxzFU=; b=cdmIiX2jP4WG3JyiS7lDzwdYVzUox8P7rSk5m0nfCNEvip4Y3q5/9FeK9kdYE/w2DH5LWK TZh+E5/Y2fJ4DayGcW/lyn4A0XEc4iKZTt5vj6pCkLECPfs1eHGqKFYIZzaX7mrfJE6cdh 7+SuZvuLcul/Q+akRtCYjsRHrku0il4= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-19-q8stMTSZPQGoqAdbt3OOlw-1; Fri, 08 Dec 2023 13:19:21 -0500 X-MC-Unique: q8stMTSZPQGoqAdbt3OOlw-1 Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-286da86884aso2449746a91.2 for ; Fri, 08 Dec 2023 10:19:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702059560; x=1702664360; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JoC6C0Qt+cZ8XaWFigMJ7rxzgccRqB4PBw4Ey/TxzFU=; b=fciFHu7x9vLETGU/6gCMBQkt3btORvCQuj5ti8E/mXC52/w+RS1dLggmabd2SIuM0r Qr10YqsbwT6PNrGwU15e2/RMOPcGnzwrCjc6j69MqYCt3tl866FFg34fK9Y/B6Sr2KJ4 IC1UHYTvvxzQddtbI3giS2XIyV3JONZoMlO0rKeTHdlCwRqrwNJWrCFJi60IXzdB+F47 sEE6M2e/BwaQw7yy3D0gWnv9A0y94zKXtVEizydcZ7HNT0vlHUI+uak4RD6mMkQXOqCJ gi8WSPs6Ti3TolQolGnQntLHgjSmXVUyxaHbsLrseUbXmF2KtFORfDay48UrpqrvcYRO c2ow== X-Gm-Message-State: AOJu0YyIHA1Xb3mecQaXtUM16xZkZz93MV5fX17bS1XKdyfDE5sFHq9n YvzVwFemhd0rEnRglM7MGjPgd87spwnveV4O4sq5ptvSwr579/KYk93GNGXyt/8R/dybmqumJms tN0zQHra5zArdLAaFjhlmiuNB X-Received: by 2002:a17:90a:31c1:b0:286:f3ec:2a1 with SMTP id j1-20020a17090a31c100b00286f3ec02a1mr481798pjf.31.1702059560083; Fri, 08 Dec 2023 10:19:20 -0800 (PST) X-Received: by 2002:a17:90a:31c1:b0:286:f3ec:2a1 with SMTP id j1-20020a17090a31c100b00286f3ec02a1mr481786pjf.31.1702059559735; Fri, 08 Dec 2023 10:19:19 -0800 (PST) Received: from localhost.localdomain ([2804:1b3:a802:3102:945e:6f76:fb73:6512]) by smtp.gmail.com with ESMTPSA id nk10-20020a17090b194a00b002865781c51dsm3711169pjb.18.2023.12.08.10.19.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 10:19:19 -0800 (PST) From: Leonardo Bras To: Randy Dunlap , Nicolas Schier , Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Mauro Carvalho Chehab , Leonardo Bras Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [RFC PATCH v5 1/1] scripts: Introduce a default git.orderFile Date: Fri, 8 Dec 2023 15:18:03 -0300 Message-ID: <20231208181802.88528-3-leobras@redhat.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 08 Dec 2023 10:19:34 -0800 (PST) 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 --- 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 + +# build system +*Kconfig* +*Kbuild* +*Makefile* +*.mak +*.mk +scripts/* + +# semantic patches +*.cocci + +# headers +*types.h +*.h + +# code +*.c -- 2.43.0