Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28259383rwd; Tue, 4 Jul 2023 16:17:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlGQs6cUvTAwPU/FGSm1oMiA44zD1VbD/TraIkuDDArsxPjcoCYLn+iLS0mDjjw00TYVKBlw X-Received: by 2002:a17:902:e74b:b0:1b8:ac67:c2b with SMTP id p11-20020a170902e74b00b001b8ac670c2bmr1301448plf.21.1688512663935; Tue, 04 Jul 2023 16:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688512663; cv=none; d=google.com; s=arc-20160816; b=A5A0cEtlpZXV4AzEXupyi9Z01SepTdFCI0YjUX10pNle6PGyYszhmsm9nZ9/MFSUss MXSRqGy0znTHRAT/CU/FlDlHVNpx5uOHs6ZDQdI7OvmRM4Aw7XF+7mRnxmNi0hwv+Xyx MK5QaJ8DSTzj6qD9Q1f/lGcJAWIkxBsUo83DFym8U6vZxCg2EvADbBMg81YXLdjxGFZL VOsZd91qSOocJ3MkccPGDMAiNDS2Lz8zitDTF/xlM7QKOSwMrTnq8TotSJlh2rBQu76d hMYSahQVJG8h06+rlMe5xvuv1E1qHKamj1sdGFbxEhhAk7gNz4kmBXR7/p7rL2ruc01Q QePA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=oxBE6HtdgtwoULtaRQ7LzaB4Vx8z3jnRyNg6ENqc1gQ=; fh=Thnhbd+Td4a7HSCcKmDJSg8L+SMqnJs5IFROSH00NHc=; b=sVrN5HrmvXt+5AjMFaoteBqRb9tJnYI+dMf/CuPmBjt3cH6oOl36JJz4Hp7kXh/tJu MBgPcCgL3gpOW0PnWK4/ZaEiC7Av1h2iE4F1L8hcJZ1ckgKFX2S+gcmWFKf+wku9DRig /YmrewX1DYmFzjVTdr9OtDMRfxRS8VSubefCMhUyBNLZ0lGZ4R4rPNT8Qasgmfp8G/YB OsqmejOTccXDud3HzXWpG2lulwLYrNqJ1jczoJIUZzJpiBXOLxcKQW0SBycd3cfr+cna dhVnbUUqchQ8JA9nsobPRAHXisOgUMMioAjgvoMCCbZ58xO53RLG+mY1fOjlTYK4CmdF TVeQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020a170902744500b001ac4f733007si20880407plt.549.2023.07.04.16.17.08; Tue, 04 Jul 2023 16:17:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229610AbjGDVPa (ORCPT + 99 others); Tue, 4 Jul 2023 17:15:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjGDVP3 (ORCPT ); Tue, 4 Jul 2023 17:15:29 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AA5DCE5 for ; Tue, 4 Jul 2023 14:15:26 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 364LF9aC021868; Tue, 4 Jul 2023 23:15:09 +0200 Date: Tue, 4 Jul 2023 23:15:09 +0200 From: Willy Tarreau To: Linus Torvalds Cc: Masahiro Yamada , Nicolas Schier , Nick Desaulniers , Linux Kbuild mailing list , Linux Kernel Mailing List Subject: Re: Overly aggressive .gitignore file? Message-ID: <20230704211509.GA21834@1wt.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Tue, Jul 04, 2023 at 12:49:01PM -0700, 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 > > git am -s --whitespace 2023 > > and the dang thing doesn't autocomplete., > > 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. > > 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. > > And I always use auto-complete, because those filenames that 'b4' > generate are ridiculously long (for good reason). > > 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). > > 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_). > > 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. I don't understand why your completion on "git am" should rely on *tracked* files. From a workflow perspective that makes no sense, as by definition, git am will consume only *untracked* files. Are you sure there isn't something wrong elsewhere in your completion rules, that would make your "git am" complete only with tracked files ? Most likely it should use a rule very similar to what "git add" uses. Just my two cents, Willy