Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3146300rdb; Wed, 13 Sep 2023 03:41:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjvTL11cJc9lVT7Wg7gb0cJVzsFcG5+lO4gNe2D3Ck7jvnITOO9tYBQUOSCRzl6s5Riu/R X-Received: by 2002:a05:6870:9707:b0:1c4:e139:331 with SMTP id n7-20020a056870970700b001c4e1390331mr2552739oaq.55.1694601663469; Wed, 13 Sep 2023 03:41:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694601663; cv=none; d=google.com; s=arc-20160816; b=sUTs0nDtFoiBQdwUElK+4uhsbMZk4hDQ60095ITdopigh8ngRrIHzJ+a0XfrOYZpQB ieGPLsO1FvQKVRUBsLGg/9gQbCFrXk2POY0VFPusrn2jlRlFdtmxztVhSev0pzQJxEbJ c1Jlrdysu3OCkq05AcOeYmNX7c94bCisgMOucv6RgoppFR42aXzh9WD7UiNE02+CeYsq mYPJH5I9Jl8x8aKM/vhSGA7HWV5oe9vWts+NsdXqulot9Vhh6SUG5b4tjFK/RkXt60PT zHUh1tsSyPQbh7cAJeQNaSBLhA/yWgZ63OSxp1wUX6cLCRjqrTkNAnelsnONUHmrE0lh qd/g== 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=+2YZeWGnhtLtLKWmmtDa9+kw7Cib/DF3yutI/cbgQ0s=; fh=+xJc5jOBB31srgE50a3zhPlzN7KfgpdtR7IK1Rhyi8I=; b=ZPwD0n87I5PAumHGw3Hst+JRTAeXYrSHziKqbRcRWc1K/yZYPR0xFHAnGyPvP9Vkaa OXXpcxLaTCA7SfObdasZGoYBYguQDGk4W4l5oSMacpgy1h6pKbV/gNdtzpF8HVuVtGmq J0JqDKKuQc7iChYbNO3wMaSnkWh+IdSIwlxF+OIg6Xf/Ijz/kU5nixoFL062akX4vX2G vug9rA6e49ZwF2eDwUW21KhzVq6ZQmfBAjySW4MqKpCbIkrJ9UnWR6NJkbpCNtMiUNjG /CNwoI/JLcXEcTbPO4XVI26lOELgVQOa9x5h5kjR9mDQPZmD+Di2whWgWKuxkcqqQdfu mQRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FzyE05m0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id e30-20020a63545e000000b00564bcae8b53si9711813pgm.803.2023.09.13.03.41.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 03:41:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FzyE05m0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id CC11D823B3C6; Wed, 13 Sep 2023 00:57:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238673AbjIMH5G (ORCPT + 99 others); Wed, 13 Sep 2023 03:57:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238663AbjIMH5E (ORCPT ); Wed, 13 Sep 2023 03:57:04 -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 129B11989 for ; Wed, 13 Sep 2023 00:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694591774; 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=+2YZeWGnhtLtLKWmmtDa9+kw7Cib/DF3yutI/cbgQ0s=; b=FzyE05m0Mk2EPnvhyJQfwRq+37i7bx8kpiPpaoJ3VhLxkmgNCTpMOLXb3lw0EUPuD65hUt Uzjl+QShoFE1WS3b2BUkV9iRkkbszUBP/GAzeaN3rWOnRMxh5sXw3xh1bplva2In4XIC5m wKeirwYS/SAzcYfRZpuQtDOoDnaL4RY= Received: from mail-oo1-f72.google.com (mail-oo1-f72.google.com [209.85.161.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-139-B6fTUf5bM72yMrRfZeayow-1; Wed, 13 Sep 2023 03:56:10 -0400 X-MC-Unique: B6fTUf5bM72yMrRfZeayow-1 Received: by mail-oo1-f72.google.com with SMTP id 006d021491bc7-57617c2528dso6499510eaf.0 for ; Wed, 13 Sep 2023 00:56:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694591770; x=1695196570; 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=+2YZeWGnhtLtLKWmmtDa9+kw7Cib/DF3yutI/cbgQ0s=; b=DyDcaBDOXJIrGqLH1XtCfX4k3O1OFKlAoIfLEMciI3EhPI41lC/Ty7zpOcf11hw1s4 tHP1AMkLPNApBcLwO0lGw+YOyzO5+NoyPv1O/SioocI+Qm5me+c8mwvhKUDoeZ5djAut +1VUhgoJXT/JFm16e3UkhTI3+RYd4q6PfxOrN3hzheN1ZYPyLUbuyxC8kQq2QU4/KVKN Ah6igNs596OmFicNBKkcfQtakuol7ox9YG01GfZfnmcFhnoI+a+ZSn/lSAOntWWC6/OH 2kRU/xkYkMI7JglTrZEY2LtljiveCxwHJxZb7VtK9h/SkJJtEOJYwPFONJ+Iw+HVJmTG h+ig== X-Gm-Message-State: AOJu0YydJSrrqrQvbXA+2LBEor1vFQVu5DV0w8/tv5VPnuNIENYlRGRG ZXqP59q/lNtw90Cag2iofM1sW9H5fdFcRPXqH+fhBjW1oPY1hWaH+Gi9FpDuInpeqTDENIKz9nH bq3bUWNf5bmQP8JLAKW3qQwO8 X-Received: by 2002:a4a:925d:0:b0:576:8c2c:c869 with SMTP id g29-20020a4a925d000000b005768c2cc869mr1992890ooh.7.1694591769771; Wed, 13 Sep 2023 00:56:09 -0700 (PDT) X-Received: by 2002:a4a:925d:0:b0:576:8c2c:c869 with SMTP id g29-20020a4a925d000000b005768c2cc869mr1992885ooh.7.1694591769591; Wed, 13 Sep 2023 00:56:09 -0700 (PDT) Received: from LeoBras.redhat.com ([2804:1b3:a803:4ff9:7c29:fe41:6aa7:43df]) by smtp.gmail.com with ESMTPSA id a42-20020a4a98ad000000b0057327cecdd8sm5137519ooj.10.2023.09.13.00.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 00:56:09 -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 v4 1/1] scripts: Introduce a default git.orderFile Date: Wed, 13 Sep 2023 04:55:50 -0300 Message-ID: <20230913075550.90934-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 (pete.vger.email [0.0.0.0]); Wed, 13 Sep 2023 00:57:10 -0700 (PDT) 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 RFCv3: - Added "*types.h" matching so type headers appear before reguler 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 | 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 + +# semantic patches +*.cocci + +# headers +*types.h +*.h + +# code +*.c -- 2.42.0