Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6874755rdb; Fri, 15 Dec 2023 10:30:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IFAVP76gBJYJTCR5tsJEBIsc0F3KoJlWr1tNJ7ZQrAVmhDTPmDvLwbOq8PP0Tnt59FvWFDy X-Received: by 2002:a05:6a00:8715:b0:6d0:e1c6:5a26 with SMTP id hj21-20020a056a00871500b006d0e1c65a26mr2051409pfb.61.1702665035205; Fri, 15 Dec 2023 10:30:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702665035; cv=none; d=google.com; s=arc-20160816; b=CUHneNfpTDcBv6HsXRYiOCm8nUDqmCkplTflTfiS6HXUTiGiRUG96ktDHmQce3EYvV CX8vuiJG8JLdwMeG1zJB+8DKjalXIPDbyh5eVWmr4qAV+I/Jx21yjX2K53fhmQpk7X1N 0SaNPsy6w6aejQhQ7W5pOM+23Ztn3UD7UzTzAc7TeuHME+dDsQWCMQ1AleyCcnn3qK0e s6zei3dFArShhepguXCBe4qcUN9Jteq/1CRfSh2ejVcZkwTJJpJIKeAO4d9+OK3O1C4J CBBr7HoSobY6nAq+qBrZf26HjNvdbyoHSpXdknfL9cYQiHfDgRwYt+J2Z32buGuFzUpD b3aw== 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=7vzJClyUOrZwfVwzrZ2j7ZURZhN9VcUajU+PzpFU1cc=; fh=lumabucT19RW1XvLLY+SgCN3QYhAa2zmnHo2DnOHbHY=; b=JxCW9BHLrwKEmZoFda1BdCrVBvXuR1nCC392lGpp33/eVCd9bLitSPly0GBdDlF7+E 5OFBi3/KNEqExfqnDQNfwlNd4YeDJlZlzQVbTw775cP9fTWixX4eUX8pZ4L8f95OCXzW Xjzr89dCtXKV6tMXDWRnpB6fU558lLN8kRvSRcyYY9IglsLEA/cLaRxDA60c5760l0p3 vvPZoof5I+iylBGSpAwYaxe91Z0Gf+ZsRhCuPhYXUdKpdq0HokRVp3POkm/TaGaAevPL 4iCW5qVmy1KgVMzujs1IphG0slTqJtxYKAaSHbUikpp2Q2cT8w/pUH7E91b+5cC+LpPK Oq8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ug6N6HnF; spf=pass (google.com: domain of linux-kernel+bounces-1531-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fc31-20020a056a002e1f00b0069109ee0b59si8737988pfb.231.2023.12.15.10.30.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 10:30:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1531-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ug6N6HnF; spf=pass (google.com: domain of linux-kernel+bounces-1531-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1531-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D51D6284CF7 for ; Fri, 15 Dec 2023 18:30:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3198A4184E; Fri, 15 Dec 2023 18:30:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Ug6N6HnF" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 E1DEC3FE58 for ; Fri, 15 Dec 2023 18:30:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702665019; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7vzJClyUOrZwfVwzrZ2j7ZURZhN9VcUajU+PzpFU1cc=; b=Ug6N6HnFDigTMjg+VaZTqId608Ys/nWY5n4KZ002RaRvhw87U6WsN0o2RBysqje5fRAiCm kcgSdkCY4gbXl2usffUqcNKYPDBasexVbc6YVi2hrlZWJr9NplcR1LrCOmns5sYgK0gAzU PCkgNSP0GNeHYgf8suBd/TYbbIa8Ur4= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-260-YgPLNL-rNyGDKkt8ZS82Kw-1; Fri, 15 Dec 2023 13:30:18 -0500 X-MC-Unique: YgPLNL-rNyGDKkt8ZS82Kw-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-425d3ed72f5so13727191cf.0 for ; Fri, 15 Dec 2023 10:30:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702665018; x=1703269818; h=content-transfer-encoding:cc: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=7vzJClyUOrZwfVwzrZ2j7ZURZhN9VcUajU+PzpFU1cc=; b=pUy35jVwZbypXS0Mo1IiITWWW2XiZhscqAMUyS6VSLD7Fi1/UuaKRY8ZWmH0olAa9r Q57Z90ZL1HkIzKzb14MPM66sZRXNDZN0VcWdTj7fE7nSvawB9rA95J3nXQe2ov/ldQXF 4WGsmwv5vgF4gaGt1SSsIv29Yigp/R+nQyAXuHLna7aQuiTNVUKZElQqzIEM0bv5Ieod IKjBSEHokxRtlbJfN1JA7y4h7crmBK2XvCPHRPHKTO+mVGlDt/JzrKN4Sji8khe+gusR Sb0DrXdsWWjCSVvrvaH2Dd3hsyfX2nh/QYv581SuHNa1/mzvE+MJCxUV0dITxV5GjjT6 HLVA== X-Gm-Message-State: AOJu0YwtpXnQvOwlANhtqBWnr9v5RDXI5HEsg7lKSzquvStMBnfCIzhK JkYxkmJXoOQ4NYsFy6xFEQ7BasNAV9XgbpQyoHCcAtlEs9GLu4LPy/szS1KqRsmkgDxCmwaccUE LVYDvzEYfDuxtTCZIYzBSMVy3iVhhDvTjIff6ZVgs X-Received: by 2002:a05:622a:11cb:b0:425:4043:18a0 with SMTP id n11-20020a05622a11cb00b00425404318a0mr20736516qtk.83.1702665017908; Fri, 15 Dec 2023 10:30:17 -0800 (PST) X-Received: by 2002:a05:622a:11cb:b0:425:4043:18a0 with SMTP id n11-20020a05622a11cb00b00425404318a0mr20736499qtk.83.1702665017666; Fri, 15 Dec 2023 10:30:17 -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: Leonardo Bras Soares Passos Date: Fri, 15 Dec 2023 15:30:06 -0300 Message-ID: Subject: Re: [RFC PATCH v5 1/1] scripts: Introduce a default git.orderFile To: Masahiro Yamada 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 Fri, Dec 15, 2023 at 2:03=E2=80=AFPM Masahiro Yamada wrote: > > 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. Thank you! > > > > > > > > > > > > > > > > > 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 pa= tch > > 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 th= us > > 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 every= one > > to suggest any other items or order. > > > > Thanks! > > Leo > > > > > > > -- > Best Regards > Masahiro Yamada >