🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #4069

Re: [PATCH v2] dir: ignore CRLF-empty and space-only lines in pattern files

#4069
From: Aniket Gupta
Date: Sun, 29 Nov 2026 11:42
19 lines
11404 bytes
> s/path/path argument/ ?
>
> Outside of a user's spelling, a directory name would not actually
> contain a slash, right?

In this case the "/" only comes from what the user types. That
is clearer, will change.

> Perhaps drop the "like before", since "still be matched" suggests
> unchanged behavior.

Will drop it in v3.

> I debated suggesting to say "patterns" instead of "lines" here.
> But the word "lines" is used much more consistently throughout the
> patch (and doing so makes more sense). So never mind?

Sounds good. Thanks for reviewing.
Technical Details
Message-ID: <20261129114254.47827-1-aniketgupta3001@gmail.com>
Path: mbox-mo1.pugleaf.net!srl.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-76623-linux-kernel-git=dewy.ru
References: <20261106182945.1316297-1-aniketgupta3001@gmail.com> <20261129060057.74590-1-aniketgupta3001@gmail.com> <DN7NG3OHVFKZ.X7LE2MUJVZJ8@lfurio.us>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.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-76623-linux-kernel-git=dewy.ru
From: aniketgupta3001@gmail.com (Aniket Gupta)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v2] dir: ignore CRLF-empty and space-only lines in pattern files
Date: Sun, 29 Nov 2026 17:12:54 +0530
Organization: Usenet Network
Message-ID: <20261129114254.47827-1-aniketgupta3001@gmail.com>
References: <20261106182945.1316297-1-aniketgupta3001@gmail.com> <20261129060057.74590-1-aniketgupta3001@gmail.com> <DN7NG3OHVFKZ.X7LE2MUJVZJ8@lfurio.us>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1161002"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8LPgOMeLwcmRl4Jp8Ee60dIsgmA= sha256:pNJjNgABHw4r4LBOXLZYv9Vgztw1eq1GHiSCZ8cltvg=
	sha1:lGzVykTJxiEPnPVLz5oX9tNlOLo= sha256:nLnrLeSXLiXyQBz5uFPW8dkLmhkedVpQrzBtPMmRQis=
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 E57ED125F97; Sun, 29 Nov 2026 14:43:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 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, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, 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 (2048-bit key)
	header.d=gmail.com
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 iZscAMZPt0Tn;
	Sun, 29 Nov 2026 14:43:14 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76623-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id C0DA5125F96; Sun, 29 Nov 2026 14:43:04 +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 EE28E24520; Sun, 29 Nov 2026 11:43:02 +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=1795952582;
	b=vnL+iZCwdvXwNjb0ZHwRcuypuKYJcETDJFgL16BdEIR3WUVegS3QQWOGaMxmH5YWvgQ/
	 xLo9c4hu33BBJf3H72l3eqlVv9ZTgRi7/qKyzn3DWO6sN5nbbiKdoFwe7iSmHyjcqkPvq
	 eN8Zjzye3Qc75SQ6nGqqQ3+IsF/WKvn0wBZo6WlUaXyF0rRhGUnSX8AvqjXgouQldJJYm
	 wFR6IQVLMJtoxusrfnuspFR4LChYmNLZYL9Fvd+Izb5UBr8qioC66ZFsMGSfthJUBdXy/
	 sLB1CrFOr/8Mm1TuPfBsriALxczv/qRoR9h22xODlVKnhBsqTcRrqPkq1rjFNswhd5w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795952582;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:Date:Message-ID:
	 X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Transfer-Encoding;
	bh=0cLp/DfRILmh0eaQixZH3SoGumi8rP3E+1IEVzzi27g=;
	b=NIPTbcA0dmNL+OKFhtDNqbAq+JrgVmNvbAoMtuq3Q8RYJZ6VjWtXPVBvwQFL4+RSY8f9
	 qrZiMayJGY7pK/qfx6zcr0rJHKVfiXkFH2B7D2QGZ5VJnl2vwlBO543HDqXTJdmt+R66y
	 knSKpZNoQ9pi7NWCbK4MuwHJtciV711cD7FI34TPL+eu+rdi8Xb6i08UvJAjQIyuXBFex
	 m5B2FS1yDJ2TobkM8eGOd2IbDFwQ1MdL2QBRmG6mj6jVMNt2X8ZedDljwy8g+W//DT1zp
	 BsqChlcRyXNE1luIxQtYXIb9IWg9/Sa2qbD88+N4DrZZKmSDpTgOLKKcdsiZsyHOzfw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=0DnnPxN2;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.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 BE545606A6A8;
	Sun, 29 Nov 2026 11:43:02 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=0DnnPxN2
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.42
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795952581;
	b=HVQC9vUpPt4fAThul6dD5TojVfXD9PqIC7lm8flX1pyjLvkcD9KazaQ9A4UEf/L4nWq+
	 +nJ9soQhLiUnkRJAEP1hKyep9aQkdoyEUYgDRu4SEJh329oa4M8TIJMr3wmx1zAPvpi1D
	 BmeZ1S0EfSg3mv4hx2cxqGzDlrTsphqfpW/DIbjtpJ+C6miDb4qG6yCgwWB7OG7GNOaWw
	 5o6l0N0r7B9fC2m4dCKlXEAUobocgdTmDr9rm8huaw+sasheqUTLW0ZP6vLS2lSoExPtD
	 mOFGsnHj1xLBYY/oaNeFwnrEvLU1Aq49xLZNhGH7Nni3IBB4tBOyBQ6jZFAlAQIQ3bw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795952581;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
	 From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:
	 MIME-Version:Content-Transfer-Encoding;
	bh=0cLp/DfRILmh0eaQixZH3SoGumi8rP3E+1IEVzzi27g=;
	b=A4cdrmlufDFqW7UKXyC8LmVdlcFM1j50tFhjoFQCnPvgG7vzcMZFyEBj3cxmERy3fJ3/
	 eToI7UV7Du3CPdU2k2QLrTs+RcW40eRVLoR0AQDSX3ZHovabLbeut7O9j3T84cYXuojIF
	 L8wplKEgQLMlOrrpb3BCEfw0R/Gwrq8wGwKfEZsFEEH3dHXi+QyqEjSuzvxhDaTW35OY3
	 zzqGs1vdVZmIH3pnNWmwfBBIUYzQqdxjSsrh7SapceHeWXBP2f2yB9FIDN8vcHzb/YaiW
	 ZJPacfJk3u5phMp+AhqyOxbPjG/2ZRClFlO+AJU3eBCq9nz3k/TiRIYQvH0Qn2g2Z8g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=0DnnPxN2;
	arc=none smtp.remote-ip=74.125.82.42
X-Received: from mail-dl1-f42.google.com (mail-dl1-f42.google.com [74.125.82.42])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A218606A6A3
	for <git@vger.kernel.org>; Sun, 29 Nov 2026 11:43:01 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8A218606A6A3
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dl1-f42.google.com with SMTP id a92af1059eb24-14394530ec6so3951809c88.1
        for <git@vger.kernel.org>; Sun, 29 Nov 2026 03:43:01 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1795952581; x=1796557381; darn=vger.kernel.org;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=0cLp/DfRILmh0eaQixZH3SoGumi8rP3E+1IEVzzi27g=;
        b=0DnnPxN2iwb6y7p/dTkwMy+jMxEdx7uBWWDy/ziQ7SstlfKBK3j/pnQ0s8pJV4JvOX
         frieVtlQZEvLfFVYG32x5lfE0eUvoLfQOiobtGuFRmTBngXATxzESFyPF6UistivHuar
         u/T9suu6HtU012ihWcJbwJOIyk/ykGlFZqHOezjqy2TsHgVYknDEQOILTPHwpxA2ungP
         /zu3HJYG35XjNnVLwD6FwWQzNctEoHlQP87vXFaNrOlae5cj9/gqotkYgKTABzdMQBUP
         qdOyqiE+eP53eZ4uiP7N7xPLAMSXWMwcdCN4YGANiNgGPL1JYDwIDrbSuPvV/5zwdg9T
         xoVw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1795952581; x=1796557381;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
         :to:cc:subject:date:message-id:reply-to:content-type;
        bh=0cLp/DfRILmh0eaQixZH3SoGumi8rP3E+1IEVzzi27g=;
        b=QI/fwAuI2QhlVVrA6LZhsDMGI+Y0x2gj+amBcNOgVRImYasOINk6SEtOQBHpwYX06K
         VfTBqGXiB0nx61enku29Wvhz85DDsFbRD3ffLxc92g3+VtJzLAaaFeadUo3ipsL5ipUy
         1cDQRldodelqduf3xdfHql5FlgyyuT10CWvBC79HKuSASfJcoObrHBdPexofXs7oYt7e
         o5uNFuwymy2iFyH7co/ay3WHvSY2qEA7Xfn9pfvDYKHswyCXbxzm5l6cnZGP5WSRf+sg
         2cnJcmx4/d8RzHd2fA2K8wpZrIu1Q0jO6qq95yjepAjkEcB5/uJ2MKzT7PdlSbQqJCzJ
         F37g==
X-Forwarded-Encrypted: i=1; AL+hErEwbZuE7DSQlu+N3cJIi/QaW2CHB3LDRFRWrzirRevjBp43R5J0wc8OAkxGQHyJOrDpL7M=@vger.kernel.org
X-Gm-Message-State: APuU4Z9ROykfRl1beNfOJ6U2OcZrxnA/A/wOXcqx9Au/sM0cxCPcMCrV
	vO/fZsoSn/oQIlyeUuhV/YLQwPslb123Che2kYxwv4Y18jwKVfWEmf/5
X-Gm-Gg: AZFdTZf2waLTx1BY1zOnUhvbj7yqpkwwIZgfX+DpVqSvILWS1aS501hzKkIpMtly5Dg
	jOk6K40UiDl/YkxvOGE+WXL4c/mfy86D+qKSbelNwslngmse9PIb/G2nEOTMliJPHAxxfJRfTMb
	GTn2QhRGUC4WZgbmxZLssflaZF5ay2yuKtG+CShyJIB4ffZgr4zw4/BWorwnKZc3iUpukHTkKXL
	IbtkEUZA2D4eI59pOW7e+u3cARBvtpnfLTOZSd2Jx7o3b4Pn1PEWN0RJ2SORruh2RSnKa6x8vgn
	JmV6Aujc9RiDPQdlDW82uJE29j2Iq4s1fcVaZ4okGZt0hffQTHLHRV33UM+ZJjuuO6M+gzKO90k
	06eQKCwJ01FcAUfT5Nu6CeL5i3ETocWu/DMFmowgPaUaZY39uvBnJnD0okmYoRECpus3N6aBDr6
	2lK+vnswg/+A/PERB+sNW64Ot+rQfwYpK8JEyz737YN0IH3Vtkbnk05yNBf0Epf0K8Bp1NP7yJc
	KrqmfD0+5d2mNZqEgY9xLggMrykYhX3/oc1usA5IpG6ZhYFCIAu0ttj4DDIZP38fKeS6VbTPNRb
	v3vZOSTUy9wzIL8/REbpodUrvp5CMFf9raSjEvYYMYu8d2sjMG/3Rxgzy1CS5LvhouxfInnZRdu
	tgk7Qs7ghPJOZgvhySAvR
X-Received: by 2002:a05:7022:1187:b0:1b5:31e4:9970 with SMTP id a92af1059eb24-1b55689ee2dmr30128481c88.8.1795952580533;
        Sun, 29 Nov 2026 03:43:00 -0800 (PST)
X-Received: from localhost.localdomain ([223.190.82.63])
        by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b55682d301sm71712157c88.10.2026.11.29.03.42.57
        (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);
        Sun, 29 Nov 2026 03:43:00 -0800 (PST)
X-Cc: Junio C Hamano <gitster@pobox.com>,
	Mike Beaton <mjsbeaton@gmail.com>,
	Phillip Wood <phillip.wood123@gmail.com>
X-Mailer: git-send-email 2.54.0
X-In-Reply-To: <DN7NG3OHVFKZ.X7LE2MUJVZJ8@lfurio.us>
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