🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #4046

Re: [PATCH v2] gitignore: rewrite wildcard description

#4046
From: Junio C Hamano
Date: Sat, 28 Nov 2026 19:03
25 lines
13583 bytes
"Matt Hunter" <m@lfurio.us> writes:

> On Tue Nov 3, 2026 at 5:40 PM EST, Junio C Hamano wrote:
>> The documentation for '.gitignore' makes reference to fnmatch(3) and
>> FNM_PATHNAME to describe how an asterisk "*" and a question mark "?"
>> behave.  Even though it spells out that these wildcard characters
>> do not match a slash, it does not say if an asterisk matches an
>> empty string (it does).
>>
>> Rewrite the section so that the readers would get a more complete
>> picture without requiring them to know what fnmatch(3) and glob(7)
>> says.
>>
>> Signed-off-by: Junio C Hamano <gitster@pobox.com>
>> ---
>
> I see this patch has been stalled for going on a month with no feedback.
>
> However the rewritten section, with its new explicit wording, looks good
> and clear to me.

Thanks for a reminder.  I re-read it as if it were a new submission by
somebody else, as the context that led to the patch has been all paged
out of my brain ;-), and found a few nits.  I'll send out a v3 now.
Technical Details
Message-ID: <xmqq8q2cwzg7.fsf@gitster.g>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76600-linux-kernel-git=dewy.ru
References: <07b3498d83424cac87221724b371839a@ukr.de> <xmqq5wyjxgyn.fsf@gitster.g> <xmqqh5hx4jz3.fsf_-_@gitster.g> <DN6NOUP5N3QB.1F84PP4O8PYYW@lfurio.us>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76600-linux-kernel-git=dewy.ru
From: gitster@pobox.com (Junio C Hamano)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v2] gitignore: rewrite wildcard description
Date: Sat, 28 Nov 2026 11:03:36 -0800
Organization: Usenet Network
Message-ID: <xmqq8q2cwzg7.fsf@gitster.g>
References: <07b3498d83424cac87221724b371839a@ukr.de>
	<xmqq5wyjxgyn.fsf@gitster.g> <xmqqh5hx4jz3.fsf_-_@gitster.g>
	<DN6NOUP5N3QB.1F84PP4O8PYYW@lfurio.us>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: usenet.network;
	logging-data="1011123"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ZpvQ9uX/343Rej7muaC5rQ0FP1Y= sha256:PkWFKvoxVHbPOopRhbwPt12sPJOmzt5iz8mlC2WIwl0=
	sha1:g9IqqmfHBG6e/6NjXptedJYJAy0= sha256:mpXwF5aKYWt7Ds1L3lT5LGX54vOvtURbNSrObSAJVJU=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 0712E125F8A; Sat, 28 Nov 2026 22:03:59 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31
	tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=pobox.com header.b=DGkS8gVE; dkim=pass (2048-bit key)
	header.d=messagingengine.com header.b=ycrwp5mx
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id kXH2PsXSD8ev;
	Sat, 28 Nov 2026 22:03:56 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76600-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=pobox.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 04389125F88; Sat, 28 Nov 2026 22:03:42 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 6FDB42702B; Sat, 28 Nov 2026 19:03:41 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795892620;
	b=nsWsGeVUx6Jox6Z3yKOQrZdK8MjKGK5oafpogoBM5+fl2q1YFC8PFV2xlMwvCvMtYGuX
	 jOEH8hE/2QvNSOOVLonoJv2q+2Xu8PxBnvPF5aAZkgImQMxqNTCZHlDVFm0H6HcurqYCo
	 ZLrRYUIxsurQaYM3XiRAXscvATKWujrzp7diA4+wr9RrfN+/YSIgmQGbDXO9LHRbkJ4XX
	 Rcm9dLoEOvqfXwpQvo7+wIqtr46reUPuF7MtQ5vFTtZ13KKfzGUW1uNfZVE1qmYxyCKvP
	 F5HSHKT2YaN/FVURzH4n8TJwVaBlRL6hOc6hmbaBnY4cAgUKsb75tpx+octoDpZHMuw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795892620;
	h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature:
	 DKIM-Signature:X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:
	 Message-Instance:X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:
	 X-ME-Proxy:Feedback-ID:Received:From:To:Cc:Subject:In-Reply-To:
	 References:Date:Message-ID:User-Agent:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type;
	bh=yGy5RmpAFFcREEVInoZDhEtjNc5NQlHNxYl0+WDWb/o=;
	b=XR5+VBeuXYZGz7zwY5r80Lj7n0wmunV3fToU+IoNLas5426tUoc63YXcgUr7SydWEQCn
	 yYOUEd4EVytNrKfXYKYxeFwZI3z7P53zb6M8UXG7BZI9HQF49qCLxDdw9LmNxF1M/BVTd
	 saXdd1IKbJQytVrnoDoNBx2AM9b0A304QvnEi8It+2UiNZ6veklMAr2uWkNSwYnmrppVj
	 dJPBPeZaYq/ek2uSVaSeWKMxJE21y6PYpb4wnEGjP/2E9L2xUs9JR4Xt/Qe0yIRAJJ3Gn
	 qsN6T/KRLSlnO3BuQ4k2dg3An2R2ZN9HDLdzy1N1kiXribCIIU/hETtcSCUPGI0WpYw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=DGkS8gVE;
	dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=ycrwp5mx;
	dmarc=pass header.from=pobox.com;
	spf=pass smtp.mailfrom=pobox.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id BB420606A327;
	Sat, 28 Nov 2026 19:03:40 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=DGkS8gVE;
	dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=ycrwp5mx
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=103.168.172.146
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795892619;
	b=KXVIeUiQZpJmg6sFLVYH4l9TBdaotuDeVJxwK6TI9Ype9JLteZsOXppdLkfkTZZQPJht
	 LeBDivY7Z+4AuYEJdaR9rfBLLJJqGaHcEweb33kESiqxqTD+goZ60O5DuawxYj0Ahm2b0
	 1yvCjiU/Dg+/wbmQSLAEMs93wuVwbpcmb17djrA4TJLgmBZUXEuDidnIzYxDwcOH7DzC9
	 yC06eHZkp+CWW7ZxPLoUmf9BODGPGJTh4SeRhja/rLQQyqUAVb/T2YVgk6dUNY3FLZoqC
	 eH5BlSWlJPOjfRseb/96iSIoTstqGSDOH/UrBMSVSV4XXl7zKcOiC+sLqK0GAkvfHZg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795892619;
	h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature:
	 X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance:
	 X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:
	 Received:From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
	 User-Agent:MIME-Version:Content-Type;
	bh=yGy5RmpAFFcREEVInoZDhEtjNc5NQlHNxYl0+WDWb/o=;
	b=qqZvz4TjaUhClTBkYKxkox/RXvgB6zpypie43LyYlBu+FXTAkzbYkOHuGrDlaasPDEMV
	 hTQOTZjQzFktHb1K3NUAOV6jqTzPw08rflwZ7EVfl52fo8kRfPY21LEhKFcAyDSi3Fkhp
	 /Oj8vC7UrJsy16Fm7KrlUkvUshI6r3EFoaWCEoBsGqwMixQo6lq12lqtLvSvsCTVGqHhF
	 KfScYSDzq13HYHavseW4OWy74b8ED8Z1iX7iyboaH403lN7t9lYxkFqcTvQXrV8iepan9
	 sV0utZE5hv+Je0bMWrHfUIHlqUOgyiZ/kFBwju409AQ20dtW/iEDkHepvpCbEkrbhPg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=pobox.com;
	spf=pass smtp.mailfrom=pobox.com;
	dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=DGkS8gVE;
	dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=ycrwp5mx;
	arc=none smtp.remote-ip=103.168.172.146
X-Received: from fout-a3-smtp.messagingengine.com (fout-a3-smtp.messagingengine.com [103.168.172.146])
	(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 79E93606A31C
	for <git@vger.kernel.org>; Sat, 28 Nov 2026 19:03:39 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 79E93606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com
X-Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42])
	by mailfout.phl.internal (Postfix) with ESMTP id 783FFEC08CB
	for <git@vger.kernel.org>; Sat, 28 Nov 2026 14:03:38 -0500 (EST)
X-Received: from phl-frontend-02 ([10.202.2.161])
  by phl-compute-02.internal (MEProxy); Sat, 28 Nov 2026 14:03:38 -0500
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc
	:cc:content-type:content-type:date:date:from:from:in-reply-to
	:in-reply-to:message-id:mime-version:references:reply-to:subject
	:subject:to:to; s=fm2; t=1795892618; x=1795979018; bh=yGy5RmpAFF
	cREEVInoZDhEtjNc5NQlHNxYl0+WDWb/o=; b=DGkS8gVEdrOBvPAZ/jetekpgYc
	APdszf3hV+qLzPd3R9bI9S492+fgFBShfuYFVsx4cqm5zxr2zg9uWymMNVDMDZkz
	Xb/vNciAHTvpT1Y4QKKCtceyH16kkIl8prHICxqgqod2Zw6Abus7W2INBQYMg0yV
	shahzcBcVaJD3Lz2YcNy+UQSkQszODM6C2wSBq+grSKaOHHwpV7T6lb1/FdLx4F7
	yw4+C1yt7No8khOby+acua07pOz76nJjkDEyiiy4zkKmnnbkFGBzqbpH9OSAoBbF
	4siCAmCT3YeGKdH8oE07W6gjz+BHV0796yXFzihYFAY0s+1tCxXj8Fgpb/mQ==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
	messagingengine.com; h=cc:cc:content-type:content-type:date:date
	:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
	:message-id:mime-version:references:reply-to:subject:subject:to
	:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
	1795892618; x=1795979018; bh=yGy5RmpAFFcREEVInoZDhEtjNc5NQlHNxYl
	0+WDWb/o=; b=ycrwp5mxHrYpLDm/Thj1kbaLubJfkwOoV7b9QLq9V6hHu9AM5pd
	J3CYNAi4v9NFPSlGImo2NeCBfWlK8Y/p09qLm3jvzQwP2pXcDzKGzDdLc+Vak2xd
	F614WkNYo/N64emirHEFmb3i0YOvVOpBDQ/cd3GS7e/tvpbp3Ki1L+A6Smr5426l
	CKY0tvGiQCP0jew6q4SgLTNW/SCBvK2xC0EFW/FQhwon/EVfy9C4yOb+r0NEV7sj
	yNWQyLfiSG4mbeI4X4sA/zY1d7lZoLvwtOdQPF7I93h1cNhGxhzpo61Uh3L+0kO7
	j6f4Rcr4zxF9cZ/M7XltrnMe/j5XntIWMMg==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
	repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
	action=sign d=pobox.com a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1795892618; d=pobox.com;
	mf=PGdpdHN0ZXJAcG9ib3guY29tPg==;
	rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
	s=fm2:rsa-sha256:IVWQsFCjWxOvIplRVpaWbU/Xlr6Y+oQkITQ92CAJ5/2HW0S
	LEN8pAq2yND2pEiN2wx/2eduFG58Ikf4W5LYUYhxZb5hCPt9qm/E1VIRB5OvTUty
	2anBUjvxzswGcdaOpbnlznD/SvG++ZbNWZ4HmH870xEMXOt5ddBSyvJ2KXkcS6h0
	oGSAi4lrYPEtilRJ1aikhnPm5uYG2gTKTyNPRBDLvUAEn3BML63+YEaNr6vidVLl
	pmIIQE9VKDxnvpZsTtmgs2ffjry/a/LglYu9qzsOUV3hpSH6tLRdETI+FGKxRFyd
	zj/E+urdhMK5LrbF8Vj922PMloq7MqOczpHgTTg==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
	repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
	action=mi-m=1; hc=12;
	hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id,
	mime-version,references,subject,to,user-agent;
X-Message-Instance: m=1; h=sha256:h03ZuKdomZHeq4GpOoFCGlI2iUBERmGXdK1mSZR9SeM=:BDi8cA0krxYsFP1oMjpUJdWYhZO7EdPav5tzGLmkPZg=;
X-ME-Sender: <xms:iiULa0tX5BMfQ8Kr0vYCUoeORi3KrHy2_GzSgN3kYOO2Y1U_amPTHA>
    <xme:iiULa4dN-YRhJrQf9rUVnaCmjg5WUuAdexVrYplxEYYZbgbRWG5Z5NI9U6Q3LZifA
    grrejkNfo5gnCOsRJAgpBdzDaffr5ATLdB4xvRXDzl9mnYspl0N9qY>
X-ME-Received: <xmr:iiULa0xaK5Lpw42DVou4iqgfUGF-4yjrbdM6wFOAXuzbUH9tWM0P_lkLcI_iZBiCgUKIkUB5eUwgi2eOma7KiQrJoRVHRfoaL0Ihi3E>
X-ME-Proxy-Cause: dmFkZTEh27TQnNPr6K/5Z8PHP2fV8NUDL79uQLmiE1qxBXXatZ6MMJnbJpUC61dv7amNaH
    GszHDCZVQLmwBGUDuCSsMR4Jauy4m6PueFW/s8usZN7SCjSyU4jclhWYpGeezZnB/1Ra2T
    lJ/ntVKk2VtQI7nh2sTD5bqdlOCFO2fWsADj7TaDLM4d2Uw4qLzsHyZn+OtFK/DRW7ZhiU
    4+expJt3YUArCUlXR1VAnF15hLbohlzt/hF2guh+egv5TrrFWLnTQtTbu3z8ou1pHs0bKo
    +lq3JAts1xLoqs+7fiJGRBHc7g3salAYb8+307Hnr/6K9qP1fSIRSMc96kD+B4VrAn7rBR
    L3a+BPiBrY35wWa3QnRK0gwzboYnRtXY5i0meBevHAKEfSqE/9hZ9lRHV6DreapKI3X0yS
    jjK7nDx1BLbcDQLiVCURukxksn8aMYkyVRaEU1BiLDohDt5/ZJGVsdkAMRulQ2m4EebkTM
    vzqFGc7zcl5f75qD2xSPXuWCvnozgJMCpZ0781qSWrpiZA54M/XhfchSc0x+XLzwAm1xvO
    rkVc/fne4C8P7Y+7rYxGH1X5tOeuql9Zw8zIJSm3vShrrbNXzpGhYlttl9u4EUXVy5VVrR
    09K8lI4G14L9iBzhY7flTLnbWaM1h8Q89yyk7KIPTM3L5qc123fiFsS88K5g
X-ME-Proxy: <xmx:iiULa2HIxS5a21WZgB7uvvdwn-VsNlnBYgiKEfOgNr8cou0TpSjtwA>
    <xmx:iiULawyt6iBKGyOt3EmPdZGzuGtljqN-aziwzviKq8zRu_0kbl0a5w>
    <xmx:iiULa_vDChm8CpAKa_NYpzlDVl2aUjNWosTIqQvklg8KmsDPIsjXvw>
    <xmx:iiULa10H-DJAn2HSipyfpaEtUo7HGVdFWoYEQK8U4P5O3WXpf0TvMQ>
    <xmx:iiULa9A_efgAMaraMmYNyeN4ujnmy09QrC7LD7GmkX32TiLt_flRGNwA>
X-Feedback-ID: if26b431b:Fastmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 28 Nov 2026 14:03:37 -0500 (EST)
X-Cc: <git@vger.kernel.org>,  "Windl, Ulrich" <u.windl@ukr.de>
X-In-Reply-To: <DN6NOUP5N3QB.1F84PP4O8PYYW@lfurio.us> (Matt Hunter's message of
	"Sat, 28 Nov 2026 02:13:06 -0500")
X-User-Agent: Gnus/5.13 (Gnus v5.13)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list