Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4783354rdb; Tue, 12 Dec 2023 09:10:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUjT8hA1LkVcbunNs7fiBuw8xu2za/Qy1/Hc0tulxInEQofW/FRWN4NLyUKO7Cd0POqUm+ X-Received: by 2002:a05:6a20:6a1b:b0:18b:d2d6:2f73 with SMTP id p27-20020a056a206a1b00b0018bd2d62f73mr8627426pzk.7.1702401036058; Tue, 12 Dec 2023 09:10:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702401036; cv=none; d=google.com; s=arc-20160816; b=lM2ay3/6rJvVO/2CaQF1iQETVuN9bxCVkf3QJcuASvnT+YYi8R9g4ivnLfsP2wIYL9 Unru53xCZ3FuUvIXH8tnPbWeDh8/9CEqmnhR4JHE43C1pgORPxGAmF2O1QJbDhnCozFK Zo1z0J/CAYk4sqX50bd3HYR9zfvCjO/B10cEsU9sbFBvng8aS0RO52ZIX4a6TJU3G2pF N/uO6lckEVpSP+i3W3pdZK2lsxKi64hYTxkWKMlRKqYNdvtPWtduUHFqs+ZyjADPtCaw y2k8WyNmiKIOaLFVZU/uCMLr/WSwuWftMS5MpeqRV5SQ/46qUoD7QN/iY9pU2pNlQDjW m5NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xTsmW17WUzLud/2jzNOtfYA8w5ZvrrOIfNd+fsou+94=; fh=LhRU7AS5hBsfsEKic6vKN9KUMtArOL3xkqsWmAV0W8g=; b=ZsMKbMJWyuBGXGaX5Q/UmNpxW1IaAQQclwkDIrH8vZ8QHh2f01OMd0TanXmautRyMK itM85PXTCq/NZ6Mg1xIn4c2C/I1dJstzNT+d3ixbSqnu7s/VK2IX5+HngLWYP0lWicJa lBc6H4xvHwXRADIbnRPWKqWrXVrnbgZLyLseV7z+Ulo32BF9n2ac75gmH9KOlYA62gY7 Jyo3Z8dSgerUqvRwZvfJOCFCJKv2xWquj7SfpkdJl2IFQt+DkhaoIF9JgdjsSBhr0NN9 pXJy42Q0/q+mtOaWget8dfWrGY/Z9jNcxPzqYKHu8/tr7ndOTcAMoDR8IqDaVAcBGie3 3GtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bklj3+33; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s15-20020a65644f000000b005c21d7d1126si8055908pgv.843.2023.12.12.09.10.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:10:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bklj3+33; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id CCF01807E44D; Tue, 12 Dec 2023 09:10:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232881AbjLLRKA (ORCPT + 99 others); Tue, 12 Dec 2023 12:10:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbjLLRJ6 (ORCPT ); Tue, 12 Dec 2023 12:09:58 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC810B7 for ; Tue, 12 Dec 2023 09:10:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702401004; 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=xTsmW17WUzLud/2jzNOtfYA8w5ZvrrOIfNd+fsou+94=; b=bklj3+33lLMWn+LeyVfLT3jLAwp6n2JEh/h7Fb+UypjeXvrk89D3D8L33LGVPiwjQnctyW tGg7JdVW1CK9paWZpffjOSKpLc35bmOrXcPvURe4Ekc7I28QnpxFrH1eyOeJGcu+8tp2rf O4vdyGOwxbDAo2SZ3nRQEOjUP9IpSvE= Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-472-962USCOoOhGd9JKuiWFyvw-1; Tue, 12 Dec 2023 12:10:02 -0500 X-MC-Unique: 962USCOoOhGd9JKuiWFyvw-1 Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-1d05708dde4so62727065ad.2 for ; Tue, 12 Dec 2023 09:10:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702401001; x=1703005801; h=content-transfer-encoding:content-disposition:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xTsmW17WUzLud/2jzNOtfYA8w5ZvrrOIfNd+fsou+94=; b=mujophZCkusxKU9Q5ujbb803zggU35lNqVMaZijUrqIzJCL0+uFZEER5mDt4oCYEeX QssjfNPFc/xY+//XZ3OkXONBYVQQ5XpNKzCL4S4kK355eiVyTlQrakbnSdO/WlPLpkPt pU+NYxPE5Q0MMwRCJuyGDc6KWohhPkDDnczLo4MvY2H8tmvliu307nnd6NprpXdfvhmP GgAz++jmyS/FbYasxTw4fbPYO0gelzP8+BPT68ggpMJVkn29mypH0NPc/0TpeBlGG3pW ggnBvCWVij6Ed39l3Uxbr2M2buC+sGs95xj0HEBW+kXktz6HJeikJ4Z5Df/kW1AYasID vqFg== X-Gm-Message-State: AOJu0YzBbSuT03O3xucwPMp9pV4sbqD+74pBGdxzpzqDEvP5XLqx2Oie AZUVVJa/ugz1GVy8vGR/L2KTsmtbykqUNWkmyo+a/g84+JvFNXgNy8+jWbRLrpiu1PAgO8OJqDf vVr1SCU4ZraGzueRZcyFnq26FR9yBc3HS X-Received: by 2002:a17:902:eb88:b0:1d0:265:6a2c with SMTP id q8-20020a170902eb8800b001d002656a2cmr7793183plg.11.1702401001171; Tue, 12 Dec 2023 09:10:01 -0800 (PST) X-Received: by 2002:a17:902:eb88:b0:1d0:265:6a2c with SMTP id q8-20020a170902eb8800b001d002656a2cmr7793162plg.11.1702401000838; Tue, 12 Dec 2023 09:10:00 -0800 (PST) Received: from localhost.localdomain ([2804:1b3:a802:3102:945e:6f76:fb73:6512]) by smtp.gmail.com with ESMTPSA id k9-20020a170902c40900b001d0969c5b68sm8851113plk.139.2023.12.12.09.09.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:10:00 -0800 (PST) From: Leonardo Bras To: Christoph Hellwig Cc: Leonardo Bras , Masahiro Yamada , Randy Dunlap , Nicolas Schier , Nathan Chancellor , Nick Desaulniers , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: [RFC PATCH v5 1/1] scripts: Introduce a default git.orderFile Date: Tue, 12 Dec 2023 14:09:43 -0300 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20231208181802.88528-3-leobras@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit 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, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Tue, 12 Dec 2023 09:10:18 -0800 (PST) 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. > > > > > 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 patch 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 everyone to suggest any other items or order. Thanks! Leo