🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #4029

Re: [PATCH] dir: do not turn blank ignore-file lines into patterns

#4029
From: "Matt Hunter"
Date: Sat, 28 Nov 2026 09:38
21 lines
8516 bytes
One more thing I saw...

On Fri Nov 6, 2026 at 1:29 PM EST, Aniket Gupta wrote:
>  
> +test_expect_success 'blank lines are not patterns' '
> +	mkdir blank-dir &&
> +	printf "\r\n   \n   \r\n" >blank-ignore &&
> +	test_expect_code 1 git -c core.excludesfile=blank-ignore check-ignore blank-dir/ >actual &&

The test doesn't actually need to create 'blank-dir'.  git-check-ignore
seems to just check its input as _candidate_ filenames against the
ignore rules.

> +	test_must_be_empty actual
> +'
> +
>  test_expect_success !MINGW 'quoting allows trailing whitespace' '
>  	rm -rf whitespace &&
>  	mkdir whitespace &&
Technical Details
Message-ID: <DN6QSHATQCMT.3UH09C5ENJUKY@lfurio.us>
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-76582-linux-kernel-git=dewy.ru
References: <CAHzAAWSi9D1mRL=A5-9GxzqQwo9jJ=45Hmxj3hVAF=8wkNZLmg@mail.gmail.com> <20261106182945.1316297-1-aniketgupta3001@gmail.com>

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-76582-linux-kernel-git=dewy.ru
From: m@lfurio.us ("Matt Hunter")
Newsgroups: linux.kernel.git
Subject: Re: [PATCH] dir: do not turn blank ignore-file lines into patterns
Date: Sat, 28 Nov 2026 04:38:54 -0500
Organization: Usenet Network
Message-ID: <DN6QSHATQCMT.3UH09C5ENJUKY@lfurio.us>
References: <CAHzAAWSi9D1mRL=A5-9GxzqQwo9jJ=45Hmxj3hVAF=8wkNZLmg@mail.gmail.com> <20261106182945.1316297-1-aniketgupta3001@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="923763"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:w+uYHKUSjE9DSGgNJSBa3Cxw7bM= sha256:SS94DDg5z9J382l2keKpF4R1OOVQ3ChjD8eUdLyMr1E=
	sha1:LQeoXDePraB16pxObNuL3V96lJU= sha256:R9cyL7qnNciJTifHuB49mRznWoo1vKz8/kdbfeQNzcg=
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 0A747125F72; Sat, 28 Nov 2026 12:39:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.951
X-Spam-Status: No, score=-1.951 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]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lfurio.us
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 xzGutFl61s0I;
	Sat, 28 Nov 2026 12:39:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76582-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lfurio.us
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 2C4A1125F70; Sat, 28 Nov 2026 12:39:26 +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 8413E28A2F; Sat, 28 Nov 2026 09:39:24 +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=1795858763;
	b=C1mBLdpCeiDBFgd8J2mayRaK+Q51Xw+FuMHptutBUpC1k48KPexaKXClhMkXAp+4llEg
	 g44XojRJLp7QTSxa6LHTn5MbgYm4PofZeK0YyOAh1TEhA2pzUAU49i3PqGdnGsm4/eOd8
	 YVjEk3J/IzSmQTzF99xml0/g+u04Nk8D7Ima8J/o6sHqFGDNvJZ3N80ScjsOlC/HByJ09
	 ZGFfloEN1bD4Patldz/il1pm/YcW9IR6PZv6i8IDbs22g/EYOQwPtoTav8/zu39FpI6Nr
	 x3XkbMzskCtHkbjMZl5bn4M15F1BY0HA4YD5tWXmKsw6oQIpTO9HEIBvP9ABpYO7STg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795858763;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:Mime-Version:
	 Content-Transfer-Encoding:Content-Type:Date:Message-Id:Subject:Cc:To:
	 From:X-Mailer:References:In-Reply-To;
	bh=N32I84vA1WnDqv5DUzLpdOxIAVd/kt8dxfvgT/n/pUQ=;
	b=5FSQMZK3NPkPPMty2xCaMUTwTGiyhx0D4B5joOp896qN/KJ1mPe7kXF3B8ZhwiPLBO+V
	 pujXvw+AbNlZw+zpRlzK7vFeTcTcwDiyRJlU3RqZBP8dlMwiL4xnLCKQtBikBWG4fCwbe
	 VW13gHzbjpF7ZMene/yOBfsBXfbc7mY5GxMeFnSVBRfxdgffGiVnoQw405ILYbBPxFxRG
	 6hFbDH0YsJyJaFLTenclDxtSyaAkb8jw5/7fLvIzYXfguR/GqeJTiv2ZnZ/uxM+QJtQ7X
	 fmT+rfV6dQSO2aJpwkHJunfVyBtV9B5KwuKQkBiThjUznmlL0frnwNRvyg1V+R3PTlA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lfurio.us header.i=@lfurio.us header.a=rsa-sha256 header.s=default header.b=hyoV8gZj;
	dmarc=pass header.from=lfurio.us;
	spf=pass smtp.mailfrom=lfurio.us;
	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 89B64606A327;
	Sat, 28 Nov 2026 09:39:23 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lfurio.us header.i=@lfurio.us header.a=rsa-sha256 header.s=default header.b=hyoV8gZj
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=157.230.60.252
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795858762;
	b=U0wuIiqybfX+/Qiij2D0hgIMbIY/SK8tRLFK86N2bIKAszAFdRyYd5hh/ThOVBKYlKWy
	 e1o3dyEt+s9waR/w6yTz1dRVGS77qtjVqEXGTYvknEz7+wjOtMtRsS3V0jeUyZA+j+sbP
	 V+ht4SVMZpQuDe65eyRa/02VEa/5cn2dBG1jZuuJ81EFAxIopvQhGAVfHFXyYyw2I0fx6
	 VGpp/0yviA+ktvYdtFoPga+c8fbTeChUFnczBiwgxDo0Ajt56ldBTe2rwD/qHjXjFpmWU
	 XdWwGbkAsc0MkNZsrzj6IOnZSjiDoQA49iifAQByOUbr5dqoMNi4LzeTekheWT+GNOA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795858762;
	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=N32I84vA1WnDqv5DUzLpdOxIAVd/kt8dxfvgT/n/pUQ=;
	b=SgCQqTmA9xVxWVWe2ysneT+n52VjkrvjG+sBDEBFNLZj6D7/xG2NL+IZyclMBzSVikRs
	 fPMgOEBXFxYJDqYd+eVARb6Fh8ZT1FZIdbpvdM/r1Vz3uIVMGuSf+YJjWQujFHrlaXBon
	 R1RvRnrNNUG2a9Z70JFBB8trqmzocitYbFWkRVJem1z0+V9LLa17P/hlTGRi6WdXgRQxI
	 S8RwKG2sLJkNjufPRG3Gl/AKSSY0F6IaGG8iupVyzOjb6dKXo9eVk/6KY0gu6LzTN9IZI
	 h4A+kc0QGEUKKTMJFSQRO4bZqjxc3of0LPHMESWM/llR03UGaLozjo1QzJ2DfTUFeTw==
X-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=hyoV8gZj;
	arc=none smtp.remote-ip=157.230.60.252
X-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 47B25606A31F
	for <git@vger.kernel.org>; Sat, 28 Nov 2026 09:39:22 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 47B25606A31F
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lfurio.us
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lfurio.us
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lfurio.us; s=default;
	t=1795858761; bh=1vM0F+LcyGFH8dSib9kW7ZD+AXbEKlH3hBbSoRni0sg=;
	h=Date:Subject:Cc:To:From:References:In-Reply-To:From;
	b=hyoV8gZjALbL06EJ+Y/ndgdY6Yc8RvYW7VUELdkdEeYjWKpksNqjZeR5f7Bd9XN9Y
	 RvAYGXpWbyk0drxnBEPwunrqjVvGW/xPp4a8YDnskfWO0Xp3CaCCpV83EKVNqfOIdV
	 L+OyroOPXEr/OT4RozyOddosBSGJUvJQhfdhRn2U=
X-Received: by mail.normalmode.org (Postfix) with ESMTPSA id 00D7E60665;
	Sat, 28 Nov 2026 09:39:20 +0000 (UTC)
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
X-Cc: "Junio C Hamano" <gitster@pobox.com>, "Mike Beaton"
 <mjsbeaton@gmail.com>
X-Mailer: aerc 0.21.0-0-g5549850facc2
X-In-Reply-To: <20261106182945.1316297-1-aniketgupta3001@gmail.com>