Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2936577rdb; Tue, 12 Sep 2023 17:53:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxre2ZiKZKpK6iJlJGY1XkjWbU6thZblP3xZfpOIrgipPTFgejDg+HtFuya9S94yJ/ryFY X-Received: by 2002:a05:6a20:7b06:b0:14d:7511:1c2 with SMTP id s6-20020a056a207b0600b0014d751101c2mr880531pzh.55.1694566416573; Tue, 12 Sep 2023 17:53:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694566416; cv=none; d=google.com; s=arc-20160816; b=ZLHODTBsIi85wJrnw8hPdV+w0gOJnE62nhsS8BJJzBH2H+i4T8UNPLnd2RYJ5xm3VX my9JvUjmdrikCCL4SpVCdgE9OXSvLBBG2gqIaoJHj1bEK11YIeeejmsWK16mRX6rcydp jZa5aabVRoxBypjyxwWfeW5e+wD+X1BalGUmh5fHtmrhVhFaOe3OqZCIm5uIg3+YNrLj D0YsGtYMNZTZajzY3eC2c1kYCiih96/XvG2D57JGKLUkpYO7DB52A5DaST1iJsxQZpFw IiyoyS//+SsDwaTtIvB9VBI+c1U8IMKwfBfVGuapoBZQ6mbVv2CF/R8dVe8uSunu/sZT 69wg== 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=4ZYzFeDTqv4NEk2wsriVo1Hlnvd32x/xng7r2s4VeXY=; fh=+xJc5jOBB31srgE50a3zhPlzN7KfgpdtR7IK1Rhyi8I=; b=ti40Woo4+fD9WWrom2LuA2G7LyXCJWRQYk7LLJ6RlhQHG5N7gEQ19aGE00dJFSYer1 94rO7R5Am+Zez+lxiPkxJYDgT+SfLYoUXeTy7YQWQtwLKZbC9LGZ4KLy6bIWOX8s8dQr oEtnWAzVEJ1k5gr8RBr2RbSSF2Z9m7cI/Thk4LEKJeD91mxPwoXjr/PpuYz3AI7W59vL BZPNvT+IUTeC3lhi1ZJsORaBGbKU4j+JLgH/pEN4sv1B+Eo9dmqg5SRl4lcJcbVnmcGd COVhlSl2skmzKMTgCWfSDHz8p07cEqmP53Zk+XSYvw7KtLxaAQGuJR2Om8tEcpFJWN4h Uibg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KrsxQQ+k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id t4-20020a63f344000000b0057790a53ce8si2899371pgj.152.2023.09.12.17.53.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 17:53:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KrsxQQ+k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 1A11780253AE; Tue, 12 Sep 2023 13:04:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbjILUEv (ORCPT + 99 others); Tue, 12 Sep 2023 16:04:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjILUEu (ORCPT ); Tue, 12 Sep 2023 16:04:50 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 910B9E4B for ; Tue, 12 Sep 2023 13:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694549039; 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=4ZYzFeDTqv4NEk2wsriVo1Hlnvd32x/xng7r2s4VeXY=; b=KrsxQQ+kdemdpikZgZHmMI5N5Jgzdf6awi2tTNEiH37kBYbSj/AuH2Q0wZGc8CpmAY9Ew+ tsvCQDJWmnh6jkTX9k6LUF9E7A7WZd1q1hsFZxULdePioXLZ+7YUD6QoQ/z9pVParKaYae ZkC7sBs73257To0YdgcTaLHT3+x3+0E= Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-435-h8rAhY95OrCQlh_760Ij8A-1; Tue, 12 Sep 2023 16:03:55 -0400 X-MC-Unique: h8rAhY95OrCQlh_760Ij8A-1 Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-3aa0fabef2cso6583392b6e.1 for ; Tue, 12 Sep 2023 13:03:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694549035; x=1695153835; 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=4ZYzFeDTqv4NEk2wsriVo1Hlnvd32x/xng7r2s4VeXY=; b=LTLNXefQVHYblVnG4OUzMqea1+r6ZX0uN6pMzrrQHXZKu2tmh9iKogAuT3fmqLRiPq hUFTOGUL2uOGQe/LzBqDrCYzIRRgH5G9splTVz5/tjxyRRJ39oR/qklkpr63BLQth44p lxTP+X+1c1AcJENn55lvYGKOGa/sZ+n8WxG9LDB7GcbASvhVb9c4rswzQGc//PEZCuv8 Duhwo0TYbLWdNns7ncjhKilTWGg2DOylNRhT6RA2mo7qaCUU5SN34tlx2hAWFsbZrNYo w62U+QmzAf9o7Q41PIS68htlC2ZNoPXjrdlkwD80QQZLFys6rt+6yuNXoyhcezLIOH4A XknA== X-Gm-Message-State: AOJu0Yxt0w40CJ9a3zIqIXqD/UJ6PafLy5Xh3xwvgiNqGqGX+tLL+QuC xINEHIOVVbICWQdbYX/0flVuDpqQBTgHBPcDo3FrMfUOZJq/vGc5fIwfFveVr0u0Wd9q9mzhjR9 3OG4sKo55b/HZBhprKbdYObX7 X-Received: by 2002:a05:6808:1911:b0:3a7:4cf6:f0cb with SMTP id bf17-20020a056808191100b003a74cf6f0cbmr999770oib.21.1694549034959; Tue, 12 Sep 2023 13:03:54 -0700 (PDT) X-Received: by 2002:a05:6808:1911:b0:3a7:4cf6:f0cb with SMTP id bf17-20020a056808191100b003a74cf6f0cbmr999749oib.21.1694549034711; Tue, 12 Sep 2023 13:03:54 -0700 (PDT) Received: from localhost.localdomain (201-13-138-24.dial-up.telesp.net.br. [201.13.138.24]) by smtp.gmail.com with ESMTPSA id z10-20020a056808048a00b003a42c45c109sm4542720oid.2.2023.09.12.13.03.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 13:03:54 -0700 (PDT) From: Leonardo Bras To: Masahiro Yamada , Randy Dunlap , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Mauro Carvalho Chehab Cc: Leonardo Bras , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.or Subject: [RFC PATCH v3 1/1] scripts: Introduce a default git.orderFile Date: Tue, 12 Sep 2023 17:03:33 -0300 Message-ID: <20230912200335.65096-2-leobras@redhat.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 (groat.vger.email [0.0.0.0]); Tue, 12 Sep 2023 13:04:53 -0700 (PDT) X-Spam-Status: No, score=0.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 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 | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 scripts/git.orderFile diff --git a/scripts/git.orderFile b/scripts/git.orderFile new file mode 100644 index 000000000000..fe985046613f --- /dev/null +++ b/scripts/git.orderFile @@ -0,0 +1,33 @@ +# 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$ + +# semantic patches +*.cocci$ + +# headers +*.h$ + +# code +*.c$ -- 2.42.0