Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28188923rwd; Tue, 4 Jul 2023 14:51:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlH7G8mVy58yRUqAcEFlDWnHQooFpT9MWZRUhOD/jsezMLmJWX0uLrMzLCRRuPQL75Uhybto X-Received: by 2002:a05:6870:d150:b0:1b0:1d1d:560b with SMTP id f16-20020a056870d15000b001b01d1d560bmr14358420oac.12.1688507501924; Tue, 04 Jul 2023 14:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688507501; cv=none; d=google.com; s=arc-20160816; b=DEu2agxHEMVxvSymUS07DdmsUD129TMmsdwCMPpn33+EsD/LMAwef13NwEteMEUlwW 4wA1RGm04e4Bj456Jk2W8nfeJgGxMhgTG/RMXon22RVAlglWjl3hXbaZjHYKvAI2V05n qaYSgu2Ei2njMIsPPWxcozHkTMhP4I0MWiaz87kFLSc2IgKBhnK+HWdf5E8U4pk6PH3r wTYOuep6YijudZhLLrohUjtAz36ulS+9PPI419/BhXfZwfBrmruKssbgVDkoON8T32s8 E1D3c+ZEe3cl23e4ffHdunH9NZJrg1KthfPqhHzxnt1RcSVCxTtisU48ldrAadohfwu0 T0+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lTzqTcLNdQWHGk/4LwYDzV1l/9yOlLZxSySpuQU5rrc=; fh=dP7SL678kO9DZA6JzGFCSNr577FrevVhlUKApCuST98=; b=uP4zz2ZLxgz/TGXeBhHucYBBmTV2+rmXOogT5g0aKNulne9elYx9cg1FnLe59BjOu7 1PCZZpH6LXLukmmyeCPsN4wFw54sv+4wGp1BJhw7/YCpQZfcdMtRNvbkwNVWZzV/+yzR 3fn+C1pRg4GLtNwszBqnkSPoqoydMuAaD+593ljcQ0OQza9Ye2HRIk69wqlJKxiaqwNr lOTDUhcxSkdJUf89+Bs/XapRktdl+2I+5qMCP2Vqpoi8+4VnQP8HDKCrodivCF+9Rq1b eV6pODUq9QB4GanXydJn+HW38ZL5wiHdZRqA88ggVKu686GMhkvpJx88ZDl1NPIPs+i1 51Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=PpEQwno0; 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 fa3-20020a17090af0c300b0025de453ee4csi154930pjb.168.2023.07.04.14.51.26; Tue, 04 Jul 2023 14:51:41 -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=@linux-foundation.org header.s=google header.b=PpEQwno0; 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 S231340AbjGDVpJ (ORCPT + 99 others); Tue, 4 Jul 2023 17:45:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbjGDVpI (ORCPT ); Tue, 4 Jul 2023 17:45:08 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AB3DE59 for ; Tue, 4 Jul 2023 14:45:07 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4fb7769f15aso9587827e87.0 for ; Tue, 04 Jul 2023 14:45:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1688507105; x=1691099105; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=lTzqTcLNdQWHGk/4LwYDzV1l/9yOlLZxSySpuQU5rrc=; b=PpEQwno00coGbfBGQEFiMDtNotaPQDKAHs+KadR8ibcEcolKTpYiocVARsC3mv2jra Tm0tk1xrvRirVN4IsNfgcfAYZmPvG7ABTLmjXfaxvgUAP1supyq8TVmp7lF7PmBNQ0fw BdjttO5YKgjUO7RkgjdByCGQbFps8+JArQ9Us= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688507105; x=1691099105; h=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=lTzqTcLNdQWHGk/4LwYDzV1l/9yOlLZxSySpuQU5rrc=; b=jtTm6r73zdsnYAha3Rk7Hm5SjKIttfmLvED1gCOP4wz0RZ3jIC4bVNKyF2DIKAlgvM uvN78XEP1U9rULWCJ/c/FNcNpnsa4dbUT07xdq6M5qhoDsLjBLhcQWTrSGdPQ9tXxVaD dOk+JxzgkV76i/S9N/8wJt5kj99OAC901EKlE/8Lg4wDkANje0ygNFA9FiMqlzuvtPMY LEt1knxwT7k6Hk/F2flsfHaPEISf7cVA9HK6BPqLRWTIqhqJ0VPZqda6y2JuIBDiSSh8 ag0DNbD53MQJ0odZZ1wMUicrY0/5aT3qVyD17hm6NJOFjTFZvD3oOdqLwjZRiXOqqpBt WdaA== X-Gm-Message-State: ABy/qLZe00ZTTAfGlrcc2bxIGOIAMtreW625bJquskWMexPLBnln8c/+ RSH6D99GC+okbdrVfUW6PgmwSkD9TQruejLmb3V7cyo6 X-Received: by 2002:a05:6512:39c3:b0:4f9:570c:7b28 with SMTP id k3-20020a05651239c300b004f9570c7b28mr11842271lfu.32.1688507104906; Tue, 04 Jul 2023 14:45:04 -0700 (PDT) Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com. [209.85.208.52]) by smtp.gmail.com with ESMTPSA id c15-20020a056402100f00b0051a5cf5fcaasm12160551edu.23.2023.07.04.14.45.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jul 2023 14:45:04 -0700 (PDT) Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-51bece5d935so7650790a12.1 for ; Tue, 04 Jul 2023 14:45:04 -0700 (PDT) X-Received: by 2002:aa7:c3d1:0:b0:51e:1095:5ae5 with SMTP id l17-20020aa7c3d1000000b0051e10955ae5mr4828868edr.8.1688507104103; Tue, 04 Jul 2023 14:45:04 -0700 (PDT) MIME-Version: 1.0 References: <20230704211509.GA21834@1wt.eu> <20230704213415.GA21872@1wt.eu> In-Reply-To: <20230704213415.GA21872@1wt.eu> From: Linus Torvalds Date: Tue, 4 Jul 2023 14:44:47 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Overly aggressive .gitignore file? To: Willy Tarreau Cc: Masahiro Yamada , Nicolas Schier , Nick Desaulniers , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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, 4 Jul 2023 at 14:34, Willy Tarreau wrote: > > But the git am completion rules should actually *not* rely on > git status output. At least in my opinion. Christ, Willy. Where did I talk about git am completion rules? b4 am DOES THE RIGHT THING. Completion DOES THE RIGHT THING. THOSE STUPID HISTORICAL TURDS IS THE PROBLEM. And the reason those turds exist? Because I don't notice, BECAUSE GIT STATUS DOESN'T TELL ME! > Here I pressed [Tab] after "2023" and it automatically completed. Go back and READ THE EMAIL ALREADY. Let me quote the relevant part again: ** 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 go and create an OLD STALE TURD that *ALSO* has that 2023-xyz name, and now try again. Notice how auto-completion doesn't work, because there are now *multiple* files beginning with the same filename. Auto-completion isn't smart enough to know "oh, he already committed that old mbox file and I should ignore it". And _I_ didn't notice until auto-complete failed, because our ".gitignore" file told all the infrastructure to - wait for it - ignore that file. So "git status" at no point gave me that helpful Untracked files: (use "git add ..." to include in what will be committed) 2023xyzzy.mbx output to let me know that "Oh, btw, you have that old turd in your tree". Please. Read the email. Linus