Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28523062rwd; Tue, 4 Jul 2023 21:44:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlH+a1FtYH724jA54OTFMcfy9dMGIVM9tRTgDIRzEs7SBCAHwBKIdcB6aZHpLYHgNJ8UpNqM X-Received: by 2002:a5b:949:0:b0:ba8:60ab:a7d3 with SMTP id x9-20020a5b0949000000b00ba860aba7d3mr10807591ybq.48.1688532290565; Tue, 04 Jul 2023 21:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688532290; cv=none; d=google.com; s=arc-20160816; b=nTCBJf6JlbHUvdnkN0viovmQObrl8NA+67HKOUTQEiGoHw6fe0rPOdAhCOmwqO52ti diDxCBGlrCHy0G3cue0336G0b5DwGhGvirHbzklTp9JwTHrcztMUgjocE8RBRbvj+jjo mCex08XyxIWACaUJXM/qObJomXQAy+RlAS9SE7O/YkW+dZg7v7eJmex9mmDSBruheBud rlTrkBH81Y1kcZx2RG2CwfBkOGLNPIEaXI1PZS3VDJh5Hs++U+/jxhLQJI2gr/2FQeel j/D7ghVr5vpH+wgoZhWtcQxIdpsawvBt09z/H1fNCz8Jqpw0tWZPqYlPd4YMUXwu+xO5 SBrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:jabber-id:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=F4ExQ8rki38DKYKKFLjlH4+i4a/SdWSTAKrRbSYjA38=; fh=UfsDZ+xkQS6iD+LVnLTCD1V28e7nLe5NyX9eKzh1wTY=; b=AVSjWhSflE9MZzJq7RHU3ThoYHYOLLetkC7cYTGMf4jg3iAM2JV66VPNCTyma4tzaA We3NR/ZRVssaEYwFAW2G0zk05VDOixJQ+ALeIQoD3t8E7Jf7ajTiY10ec1/lSPjtQRGR 11agnn6fGn9oCc7cLqM2d+hzGI5qa+mCg3FeyHwDCylmVFnPkYzVt38Ush+9v1xxenaX KjarFyQ6vKs83urqrGMNENR7OsF8K7GKe861XBmXz/UiMrz+OrQF44yFE9EGfH+OhjaK SkQc6b+Q0fy3JBAtp6sj0e47Fgu7hxt1qMyKVC3kcPD74gOecufvqwN858OAOKolSUim bfTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fjasle.eu header.s=mail header.b=bACWThQ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020a635607000000b005585b14499fsi20263392pgb.326.2023.07.04.21.44.30; Tue, 04 Jul 2023 21:44:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fjasle.eu header.s=mail header.b=bACWThQ0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fjasle.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230195AbjGEDwX (ORCPT + 99 others); Tue, 4 Jul 2023 23:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbjGEDwV (ORCPT ); Tue, 4 Jul 2023 23:52:21 -0400 X-Greylist: delayed 317 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 04 Jul 2023 20:52:12 PDT Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB583E6E; Tue, 4 Jul 2023 20:52:12 -0700 (PDT) Received: from leknes.fjasle.eu ([46.142.98.200]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M1q8m-1qJ6Oi1S6i-002CcA; Wed, 05 Jul 2023 05:46:28 +0200 Received: from localhost.fjasle.eu (kirkenes.fjasle.eu [10.10.0.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by leknes.fjasle.eu (Postfix) with ESMTPS id 9A6FD3E77A; Wed, 5 Jul 2023 05:46:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fjasle.eu; s=mail; t=1688528786; bh=HnkD9VZba8t7ggYP/ui8iR+F9w6/BbeJgf9U4jNoFts=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bACWThQ0STjRLlGa7U+gBKRTJWhMqgAmwoqdoekaINqID8B20JgF/YkCRMIIFp4DJ LcQY7l0w3AD1OgJp6jbRZ/a8rNqOT2ArnLR7+74wH+Jh3zsmyZlBVpqvo2+GAmmThg PzELgw3ErXm52hghxWYuMYvvLjLyILNgc8vjT5Dk= Received: by localhost.fjasle.eu (Postfix, from userid 1000) id F02BF7E6A; Wed, 5 Jul 2023 05:45:52 +0200 (CEST) Date: Wed, 5 Jul 2023 05:45:52 +0200 From: Nicolas Schier To: Linus Torvalds Cc: Masahiro Yamada , Nick Desaulniers , Linux Kbuild mailing list , Linux Kernel Mailing List Subject: Re: Overly aggressive .gitignore file? Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kOBcq0CHJ88AHU5w" Content-Disposition: inline In-Reply-To: X-Operating-System: Debian GNU/Linux trixie/sid Jabber-ID: nicolas@jabber.no X-Provags-ID: V03:K1:pp5kItlL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SPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kOBcq0CHJ88AHU5w Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 04 Jul 2023 12:49:01 GMT, Linus Torvalds wrote: > So this keeps happening to me - I go to apply a patch I just > downloaded with 'b4', and I do my regular >=20 > git am -s --whitespace 2023 >=20 > and the dang thing doesn't autocomplete., >=20 > The reason it doesn't auto-complete ends up being that my kernel tree > contains some other random stale mbx file from the _previous_ time I > did that, because they effectively get hidden from "git status" etc by > our .gitignore file. >=20 > So then those stale files end up staying around much too long and not > showing up on my radar even though they are just old garbage by the > time I have actually applied them. >=20 > And I always use auto-complete, because those filenames that 'b4' > generate are ridiculously long (for good reason). >=20 > And the auto-complete always fails, because b4 just uses a common > prefix pattern too (again, for a perfectly good reason - I'm not > complaining about b4 here). >=20 > This has been a slight annoyance for a while, but the last time it > happened just a moment ago when I applied David Howells' afs patch > (commit 03275585cabd: "afs: Fix accidental truncation when storing > data" - not that the particular commit matters, I'm just pointing out > how it just happened _again_). >=20 > So I'm really inclined to just revert the commit that added this > pattern: 534066a983df (".gitignore: ignore *.cover and *.mbx"). It's > actively detrimental to my workflow. >=20 > I'm not sure why that pattern was added, though. These are not > auto-generated files from our build. So before I go off and revert > it, let's ask the people mentioned in that commit. >=20 > I *suspect* the thing that triggered this wasn't that people actually > wanted to ignore these files, but that it was related to the misguided > "let's use .gitignore to build source packages" project. >=20 > But at least for me, it's a real problem when .gitignore contains > other files than the ones we actually generate. >=20 > The only one that actually commonly affects me is the *.mbx file, > although I could certainly see the same being true of the *.cover > thing. >=20 > And there might certainly be other patterns like this that I just > don't react to, because they don't have the same detrimental effects > on how I work. >=20 > Comments? >=20 > Linus Thanks for sharing some details of your concrete workflow. I think,=20 having this in mind, it is quite a fair point to criticise the handling=20 (or ignoring, respectively) of files that are are not generated or used=20 during kernel builds. But in general, I don't find it that easy to=20 draw the line; should we also remove *.kdev4 *.orig *.patch *~ \#*# patches series =66rom .gitignore? I don't think so, even though they (partially) fall=20 into the same category. =46rom my point of view, this is a decision of personal preference. I do like the ignoring of *.mbx and *.cover, as I tend to have those=20 files around for some time by intention. But a revert would not cause=20 any trouble to me and optimisation of your workflow is magnitudes more=20 important, so I am perfectly fine with it, if you want to have the=20 commit reverted. Kind regards, Nicolas --kOBcq0CHJ88AHU5w Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh0E3p4c3JKeBvsLGB1IKcBYmEmkFAmSk52oACgkQB1IKcBYm Emn36xAApwKAOGE3Kyrg5laz1NIiZ3UJi2bbR5vBRUdRTv4XiYpNJGuEuFvTugcO VcKbHcbVcL5s2Uau1Mau33eTbcxHKPn/mLrcqeOZICLv9XqeOgZbTMVD3nByhVwd kJAqpSfJplElzs1O6r7duqaKRr6oXELHMtTxzl7Rn7ZcxqnJWV5MIG/YSjrjRNe6 rua6akR6k0i8I2Z78C2yN2wFnWMuLoMwJaCzPDkSqNg0H25wzr3Ge4fj63KuGpLm IL7X/Eu30FbVMgcR9nev8ud0yb2FrAWenxwBfQDTEkSLiCKa+zLuax5uEFWI70zs PCikiUAdhrm5vVzPaLQwQdi0d6EcWa2MgiO5IUWEPqk4iBYpV8G2JNb5JqJF9siV 650RFrrk9D1P8YH6aFH9byVivN4H/5Ay30by5xEyf2m/LeURPt0cQ4E3n3IMj5y6 p6xL7Znmd5vpbnVnbetnYQRlbmpa5jb8A3YP7rovMuIzRoWc52oFqdVcy4kxfQnH v0B3+oKf4oMef1SQk9M5XGLI+p74IlYbKaFTf1C8DhEKgEPEBNvebD3viheDhPfA Ms0odI0SeKQgf0mSy84aio7aO9zmYLS3M/IgRNFOoLoPE+mdJkwfRhCmbY3x6Sz9 BSJxB0mBb6T/lw3cZBNh+vAVddUkbpUtpkMU6CswWIIgt0BtHYk= =Tr0v -----END PGP SIGNATURE----- --kOBcq0CHJ88AHU5w--