From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=157.230.60.252 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796014446; b=uLchZuhUc3oMjO82Ch5IgMQsQlB/pUuuKBZfS/cnGALEI3xL9JSQNf5drqdqexRhKrGc Ebraknj8yajU9U6xQsOaFamfi3NdbM9QbuBXtgU3tlaxw7koo4ZzxRWSh8eaJufvOta84 XQ4lsgW7Hx70n2cwg+o1pc88vpXUE9AjL/6uNFUV9TC4mbP7h1RddwzxysDxfIOHhHvjb cmvoclPgpMPnlwvFpsTnzn5kb2k9HHfhvIulcb+FUyMPMLqF3chnFWAFbhaL5xVsDjMNR 9RoA55u62SaiZ26iTNFKJuS4ruT1rr/KZ+jjOYGhujaXzZzf1kR/6Foj97KUIvn4lrA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796014446; h=DMARC-Filter:DKIM-Signature:Received:Mime-Version: Content-Transfer-Encoding:Content-Type:Date:Message-Id:Subject:Cc:To: From:X-Mailer:References:In-Reply-To; bh=vs5pRN8Ht0niG4bSHklyk2SiYfeUhYzBVLmk8De2bNI=; b=0KiP4+9biqjGkn0jdVLQvFhHZLiAJ1VgJKkBSzaLoOymuaSelcIayFO6BTouK7reKywa TExx76W8LXUxpnYGkFARgrOf2Aa6RGO6/kfiBhAiq19r7ERhWCuZ53+at7nmZwRklnY/F 43dsDseF/7uabKOo9KFEGN+ev7iMaW2DF76R7X6DA0ag8gRpp6oOZSu8MlF7P/6SCmTPC HisW3Kt2mnX+35tLWUSx2gbtl8qgm60u1H95xbriokxf4loHTF11otfekAtZIcJuqf4Iq ww0E4dZGF4oUqiUeRbWyNhVWSENSjUJ9kVmN107RfOLgXYbI48PyWwC9WV6bFiLCRCw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lfurio.us; spf=pass smtp.mailfrom=lfurio.us; dkim=pass header.d=lfurio.us header.i=@lfurio.us header.a=rsa-sha256 header.s=default header.b=L+NpENAe; arc=none smtp.remote-ip=157.230.60.252 Received: from mail.normalmode.org (h01.normalmode.org [157.230.60.252]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37BDF606A31C for ; Mon, 30 Nov 2026 04:54:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 37BDF606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lfurio.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lfurio.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=lfurio.us header.i=@lfurio.us header.a=rsa-sha256 header.s=default header.b=L+NpENAe DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lfurio.us; s=default; t=1796014444; bh=b5bpLg44aBuTwaCdEZ+srxrH+HkWuVvIKY6Wp7TWFxk=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=L+NpENAezPrprr7qZHC/qZGZVtp/pLgjqaSPCQ5NkDiKoptnQrpAmfCjy4BScWte8 zv4uHhzp1gyOQmOQI+S46eXZwkl/jHKDXZ/hdqOp4rO0sFQJmrkK3uMHOb6o/N+rZ5 6yf7a2YpHgAvZ3KedmDBy0PlkcodfnyUc7G7YbjU= Received: by mail.normalmode.org (Postfix) with ESMTPSA id CE338600E7; Mon, 30 Nov 2026 04:54:04 +0000 (UTC) X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sun, 29 Nov 2026 23:53:39 -0500 Message-Id: Subject: Re: [PATCH v3] gitignore: rewrite wildcard description Cc: , "Windl, Ulrich" To: "Junio C Hamano" From: "Matt Hunter" X-Mailer: aerc 0.21.0-0-g5549850facc2 References: <07b3498d83424cac87221724b371839a@ukr.de> In-Reply-To: On Sun Nov 29, 2026 at 2:50 PM EST, Junio C Hamano wrote: > > This improves over mine on two points by unifying the cases to have > individual characters case and character range in a pair of > brackets, and by stating more explicitly how negation and '/' > exclusion interacts. It probably makes sense to fold the [*?] into > the description on "any single character from the listed characters". > > ... listed there instead. Wildcard characters "`*`" and > "`?`"' lose their special meaning inside a pair of brackets, > e.g., ... nothing else. Agreed > > I personally feel that this also disimproves on two points, though. > > - "However a leading ... negates the list." makes it sound as if it > is a bad thing. It is an additional useful feature, and I'd > prefer to phrase it as such. E.g., > > The list can be negated by having "`!`" or "`^`" as the > first character in the bracket, e.g., "`[^0-9]`" matches > characters that are not ASCII digits. If the interpretation here of "negates the list" is to apply some bad attribute to the list, you could revert back to your phrasing "negates the match" instead. Another possible wording is "invert" instead of "negate". I like what you propose here too, especially if splitting the bullet up like mentioned below. Though as a separate bullet, I would make this change for context: s/The list/A bracketed list/ (or something like that) > > - "A slash character cannot be matched" also makes it sound as if > it is a bad thing. Wildcard sequence matching only one path > component at a time is a feature, and I'd prefer to phrase it as > such. > > Neither bracket construct (negated or not) nor a wildcard > matches the slash "`!`" character, which is matched only by "`/`" > itself (e.g., the pattern "`a/b*`" matches `a/bc` but not > `a/b/c`). This reads well as its own bullet as well. > > Also, it might make it easier to read if we split this large single > bullet into three, by the way. (1) brackets, (2) negation, (3) > slash-exclusion. > > What do you think? As hinted above, I'm in favor of splitting it up this way.