From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,URIBL_CSS, URIBL_CSS_A shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 7B8DD1F953 for ; Tue, 2 Nov 2021 00:34:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229811AbhKBAgm (ORCPT ); Mon, 1 Nov 2021 20:36:42 -0400 Received: from pb-smtp1.pobox.com ([64.147.108.70]:51003 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbhKBAgl (ORCPT ); Mon, 1 Nov 2021 20:36:41 -0400 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 30D0DFBB60; Mon, 1 Nov 2021 20:34:07 -0400 (EDT) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=XiA2BNbr63ytw8FBsHI3tr88zsPpkTDr16PE+w +AKqc=; b=BkQIy8cM4YM0A2nHgG3xQDAijMGcRZtEdBmdDoev4rorPuSF9dlMPe zxNah1GUmFTrOT5SrvZ+Cppir9qo0JQY7guE4CtgCXzuRMP4N2ycOMNS2Zezj8zO BXQCEJ1pT5G4/VeLYdecKhLDcUzIHr6a5Zr07u01Hoy+dsFQ/cfME= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 26672FBB5E; Mon, 1 Nov 2021 20:34:07 -0400 (EDT) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [104.133.2.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 33C2EFBB5C; Mon, 1 Nov 2021 20:34:06 -0400 (EDT) (envelope-from junio@pobox.com) From: Junio C Hamano To: Derrick Stolee , Derrick Stolee , Glen Choo Cc: git@vger.kernel.org, newren@gmail.com, matheus.bernardino@usp.br, stolee@gmail.com, vdye@github.com, Subject: Re: [PATCH v4 04/13] dir: fix pattern matching on dirs References: Date: Mon, 01 Nov 2021 17:34:05 -0700 In-Reply-To: (Glen Choo's message of "Mon, 01 Nov 2021 17:15:48 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 961D0036-3B74-11EC-AE60-62A2C8D8090B-77302942!pb-smtp1.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Glen Choo writes: > This patch changes the behavior of .gitignore such that directories are > now matched by prefix instead of matching exactly. > > The failure that we observed is something like the following: > > In "a/.gitignore", we have the pattern "git/". We should expect that > "a/git/foo" to be ignored because "git/" should be matched exactly. > However, "a/git-foo/bar" is also ignored because "git-foo" matches the > prefix. > > I'll prepare a test case for this as soon as I figure out how to write > it.. FWIW, reverting this commit (and nothing else) from 'master' does not seem to break any test. That does not necessarily mean much (it may be indicating a gap in the test coverage).