🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #4021

[PATCH] doc: gitignore: rejoin related paragraphs

#4021
From: Matt Hunter
Date: Sat, 28 Nov 2026 07:14
51 lines
9679 bytes
Some text has become separated from relevant context by the addition of
another paragraph.

Reorder the "If there is a separator at the beginning or middle..." item
so that it is next to the "For example..." item that describes it.  The
preceeding item about paths ending in "/" is related, however the
example text speaks more to the moved paragraph than this one.

Signed-off-by: Matt Hunter <m@lfurio.us>
---

Noticed while looking into
 <20261106182945.1316297-1-aniketgupta3001@gmail.com> and
 <xmqqh5hx4jz3.fsf_-_@gitster.g>

 Documentation/gitignore.adoc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Documentation/gitignore.adoc b/Documentation/gitignore.adoc
index 7979e50f187e..662632bdefc9 100644
--- a/Documentation/gitignore.adoc
+++ b/Documentation/gitignore.adoc
@@ -91,11 +91,6 @@ PATTERN FORMAT
  - The slash "`/`" is used as the directory separator. Separators may
    occur at the beginning, middle or end of the `.gitignore` search pattern.
 
- - If there is a separator at the beginning or middle (or both) of the
-   pattern, then the pattern is relative to the directory level of the
-   particular `.gitignore` file itself. Otherwise the pattern may also
-   match at any level below the `.gitignore` level.
-
  - Patterns read from exclude sources that are outside the working tree,
    such as $GIT_COMMON_DIR/info/exclude and core.excludesFile, are treated as if
    they are specified at the root of the working tree, i.e. a leading "/"
@@ -105,6 +100,11 @@ PATTERN FORMAT
    will only match directories, otherwise the pattern can match both
    files and directories.
 
+ - If there is a separator at the beginning or middle (or both) of the
+   pattern, then the pattern is relative to the directory level of the
+   particular `.gitignore` file itself. Otherwise the pattern may also
+   match at any level below the `.gitignore` level.
+
  - For example, a pattern `doc/frotz/` matches `doc/frotz` directory,
    but not `a/doc/frotz` directory; however `frotz/` matches `frotz`
    and `a/frotz` that is a directory (all paths are relative from

base-commit: a018953688f1b10bddf91bff8747068f5f4746a4
-- 
2.56.1.944.gfc811cc53d
Technical Details
Message-ID: <20261128071613.3386188-1-m@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-76573-linux-kernel-git=dewy.ru

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-76573-linux-kernel-git=dewy.ru
From: m@lfurio.us (Matt Hunter)
Newsgroups: linux.kernel.git
Subject: [PATCH] doc: gitignore: rejoin related paragraphs
Date: Sat, 28 Nov 2026 02:14:34 -0500
Organization: Usenet Network
Message-ID: <20261128071613.3386188-1-m@lfurio.us>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="903262"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:nqf8HJ+q2J9MF7OsLLFoU9wlAxs= sha256:R6BzDlXapBDBboYPhPmadjLwigx/1NYV8pVw262E6l8=
	sha1:2RgRwcKvc6Yu38h/YUcCHzNxOXw= sha256:YmiPCeIFVEHWsUlhgRJIvBaCbERvhODlnpkZ1AMbWRU=
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 BBAA4125F70; Sat, 28 Nov 2026 10:17:12 +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 (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 uuGkiGaGShWO;
	Sat, 28 Nov 2026 10:17:10 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76573-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 A767D125F6F; Sat, 28 Nov 2026 10:17:01 +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 4D9902B809; Sat, 28 Nov 2026 07:16:54 +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=1795850214;
	b=g/K0cB8IUb46lQi6HDPmqBtjTXXwpRlScSJV6bHvlJ3D+IB95OEqEoVGoq/8BfDwfcoX
	 udRh22uaF4mKC52l8erwoEkR6B2jPNq8wK25LDFpvvQJ4n6+urrC7OW4nsX45OuY81ux9
	 Bw8Bv4J6KyO06Ft2dFaXzuv5n7VKbWjXOCvqVx1Phuc+WtGIEb/MxHCvKXc1lbkpRBgpM
	 aUJLk46qWLbxQWgG8HI7/RoVAXEz8CkHweYkqpnevC9MjmDxRhsMZJ0+UL/m92IcOs3hm
	 7yTZPxf3ZlHYXNZghFf9Wb4I8uhGxzI51fCOp3zyOk8UUcTFY6hdacA4PK0NQr9JkfA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795850214;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To:
	 Subject:Date:Message-ID:X-Mailer:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Transfer-Encoding;
	bh=kQaHFtr6CNOmPGo15BJcjmrf8wq7ML6zb3Uclf7bvUY=;
	b=sD7CbVNX0bn5p9xovO9IAq8944jRwmYXDSpBc0W+jEfg6yXFr66TwgZSdzYk80CVvhQo
	 cAXPW22s2ZrMNLpcuPUMBxOR4qm0W3GxNRX7DGqNpiyp+0oedWDN0v77h30tuXUaOcRKU
	 LRytxtnHhZkLaBDT2gkhrd9+bThl6fHqrS9mBMdV+9BUS8IwiYMuVaU/og43Y1tJmqPCA
	 HgjXQS2uBAG8a+mNYxMgLcRBXktNENRl1ElEgSBkSAw+AYLwHFXgq0MpOCBF1xilHmPxS
	 ZM73+19rnZobxA7AQe7aKH/1Rafx6sv6rG3BPcohNnacgKj6wHZpE4OSWX/jSPCKKkw==
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=AmSBdFbu;
	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 22F86606A327;
	Sat, 28 Nov 2026 07:16:54 +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=AmSBdFbu
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=1795850213;
	b=eBjo/RNpGB0AwTCcbs4dhvDq9wc/qYqr4/7z/QT2oH0pzOEGe7bqYLcLZO0MuWX89VWy
	 p3SprM0c1NbuggzbqmeoO81gugRUmh14vXulPhLnYeDspnzlRkuPBz93GjWoaugXDgTPX
	 yRndfrACgHA3v6upzhqjaYxhUR7uq06ocjZ3yMMoogqpTL8f72lzbNncp9RZX9U/CuD6J
	 5wu7qIY0nm9MYQpTuLPBRliUmByJVWCCwQ+pTfhHO/WZFRx1gfHptlouby8teWaPudz3v
	 WhWWRMkdnY0wHmqlfqIs15ysGrta4Ie4x5/IVHYJou//lVgIwmgGA45tKSbsKXg1Qkg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795850213;
	h=DMARC-Filter:DKIM-Signature:Received:From:To:Subject:Date:Message-ID:
	 X-Mailer:MIME-Version:Content-Transfer-Encoding;
	bh=kQaHFtr6CNOmPGo15BJcjmrf8wq7ML6zb3Uclf7bvUY=;
	b=H73Vv9tC/PPakgTPy72MOqH7JTMRQrtHtAZAvRvT7/poOSW332rNZsx9FW+elLFNfJR/
	 phVZouuUonO40H3PuD9hDxaatbROc6HoE5QqXZA5n4uNRORmKcSrtLnv4MyOFnInkAb9a
	 YfVrJgF/LwdZW33xrTZKtk1MyBr3AVTQUlqRTc4zj9eUKdYGDZVVEyH4L1iobf0/hWaJA
	 5RAJcIiRrGBWvIdzPY0HhGg8PsvP10NwAkcspFsQcS3ID8ezCP3vZhWsTBRuyH51McBYP
	 ilb/LFvSWW0U6nfOlO9B/hBYInRfPdagGjcmtpefucJOXI5SAl9fd52FLOuFz2ietkQ==
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=AmSBdFbu;
	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))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBAE7606A31C
	for <git@vger.kernel.org>; Sat, 28 Nov 2026 07:16:52 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DBAE7606A31C
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=1795850211; bh=Vc4vGJCcv+i1GYW0EIdHEFPF5hskAAy2ilhFWeX43qw=;
	h=From:To:Subject:Date:From;
	b=AmSBdFbuSmDaE07g3OH3QghLsYvKqoyzh3uwaqEqgWFD1H1dbdyPx2fXh9ofLgi8E
	 JuUxiWUj3uolV/hIWjLdwfMVK0O8zx+g99OH7Y4Gg307aSfEw0KYBxDimZfBL2Hnd8
	 1m+EF1wiSeJ3ZnEy2wIm57Mm9W0UEg/FjyGx1nHM=
X-Received: by mail.normalmode.org (Postfix) with ESMTPSA id 6251863F91
	for <git@vger.kernel.org>; Sat, 28 Nov 2026 07:16:51 +0000 (UTC)
X-Mailer: git-send-email 2.56.1.944.gfc811cc53d
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