Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6816631rdb; Fri, 15 Dec 2023 09:03:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpyFKBOivX/rcMBziyxyPtFdH1uRIftPwzzvPiUJ/xVKdux8eupT0ZPx7hQez9l3xYzzo/ X-Received: by 2002:a17:903:41d1:b0:1d3:6a45:f80b with SMTP id u17-20020a17090341d100b001d36a45f80bmr3780777ple.135.1702659801021; Fri, 15 Dec 2023 09:03:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702659801; cv=none; d=google.com; s=arc-20160816; b=lSClekYD04jx73AOpbIUJRlBSKapglzuN8PtZ7cSHl8KGLWCqVzmcJ2ND5UT9U7N+S fXCQ+NUTUtnSV/rxP+jBNKOxUqcTpE5hWE5IcrT8zQOqJcSIcTZclQ5s153mR79/+Jgi AurbArlDTl3MvnsB7/zrqOUvBKwqNjrFy3sqF2vbX7tnvtyfWi/dLfmOp4SF3BURB7eN H9mBf2ZO/aboTYaibD4uBpovdbwcNhvvzTn/9IfbJpkIxhSMvWyhHW3Wfn3LxGsQ5VQ9 IrlQUSqS5Ll9wEqNX4BoX/JoXFsva00dG7jZykf58oJ9OR+Pckh2M0KNLutYow5lB9LE kJPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=6yTykKNXfiMtLqjXt2SAA0uZQxO7pke3PDZhCyvm530=; fh=Hoiumhxwix+dnrnGOLVhTYgOJAhdHgjIapOOtz557xg=; b=kXFTtJ5KH32v+ZcthD3FW5PWSo7J9ITnJy5ePBJMP8ef8IfXs6Fd1/T/0qoa1TCG6P VNJ5/KyTUaRKhRvSk0yuWBgL30lWJTZj1DJy7R0eqMOrD0zCKvADYNvaaGYbepwadub+ HZqLxr0plIVh6xWPj9YwCqSJEbdCwNTxafDeA1ZGA+ohu2NGLXYzbS8PLt37E49E6y+P ybeUFUb7f46KEPANKYohzcE1c4SalniADKu7ftyyITcIzbOI3swINaVuVLpzfb//lhdI VMMV5Z9mGoSEKTvruK/1+RUKDMHggGIrhPqOZl0HKdGK3rU3p40jkhHQzmuwJrPKYf6H iUFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L8njkoym; spf=pass (google.com: domain of linux-kernel+bounces-1348-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1348-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x19-20020a1709027c1300b001d33a8a3df6si6293034pll.506.2023.12.15.09.03.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 09:03:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1348-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L8njkoym; spf=pass (google.com: domain of linux-kernel+bounces-1348-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1348-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AF71FB2319E for ; Fri, 15 Dec 2023 17:03:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEA623EA8D; Fri, 15 Dec 2023 17:03:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="L8njkoym" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E75E3EA7C; Fri, 15 Dec 2023 17:03:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F145C433CD; Fri, 15 Dec 2023 17:03:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702659787; bh=ajf26pir6fXq20CplEJMXiFdwNUfaixnT+N6tmJkitw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=L8njkoymU68soJsWcs0umSxZd8F8wVyIF44uHMIBxOUEUo+UUCwo1z/U3p8h6/qpT iWOoXvXUFpvE5U1nHRzhQbI2bkfGtV5dlI/Dt8Ttjfux6T89RMq7d8V8KnwcEmDNji 9qgWjUMt66f7hG7gDCHcITJviZGhQGH4EA81fRAKr36LI05zmHDtxf38QwzXYR4LMv jkNKcwv/UeCUA0w/5TGM7DQq5KQhs0SqABI23rpk7I7HO9TjzQR93MYs5oKMSsf5rr uHT1rm6al/+LEQ1/poUMJEBzZHHaOBMRJ9mgSWFhw/XTUuJSHqyUHprkSeo/0zVIrw RkPycjKtarHqQ== Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-20379a7a926so208503fac.3; Fri, 15 Dec 2023 09:03:07 -0800 (PST) X-Gm-Message-State: AOJu0Yw2rGtP9N4ALA+4D8XcCXL7KoZZiltkoXvQWZ2Wv0E8io4/Wgnm aIPGfAewA9m0elOYyT8i1ML3xMQ/S97L/YUKBSc= X-Received: by 2002:a05:6870:7a2:b0:1fa:2620:6c4e with SMTP id en34-20020a05687007a200b001fa26206c4emr8111187oab.4.1702659786858; Fri, 15 Dec 2023 09:03:06 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231208181802.88528-3-leobras@redhat.com> In-Reply-To: From: Masahiro Yamada Date: Sat, 16 Dec 2023 02:02:30 +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: Christoph Hellwig , 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 On Wed, Dec 13, 2023 at 2:10=E2=80=AFAM Leonardo Bras = wrote: > > On Tue, Dec 12, 2023 at 05:08:34AM -0800, Christoph Hellwig wrote: > > On Tue, Dec 12, 2023 at 05:09:21PM +0900, Masahiro Yamada wrote: > > > Unlike .gitignore, this feature is opt-in rather than enforced. > > > > > > To use this, you need to run > > > > > > 'git config diff.orderFile scripts/git.orderFile' > > > > > > or > > > > > > 'git diff -C scripts/git.orderFile' > > > > Oh, ok. That greatly reduces my concern. > > Yes, it's an opt-in, so no user should be directly impacted. Applied to linux-kbuild. Thanks. > > > > > > > > Indeed, the file order is subjective, leaving > > > us a question "do we need it in upstream"? > > The main idea is patch generation. > This file's order is supposed to be the best order for reading a raw patc= h > and understanding the code changes. > > > > > > > At least, it is harmless for people who have no interest. > > > > .. but this is still a good question. I'm not really sure there is > > much of a need for it, but as long as it doesn't harm everyone else > > I'm at least neutral on it. > > diff.orderfile was introduced in git to help order the git diff, and thus > the patch generation, in a way that it's easier to understand what the > commit / patch intends on doing. > > Take this example introducing a feature foo, you should see: > - Documentation on foo, if introduced > - How is foo enabled in build system, if needed > - The types / stucts / fields introduced by foo, if any > - The interface for using foo, if any > - The actual foo implementation. > > Of course the actual order is open to discussion, and I encourage everyon= e > to suggest any other items or order. > > Thanks! > Leo > > --=20 Best Regards Masahiro Yamada