From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=103.168.172.145 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795927864; b=t9dadQaCA2JOMQwsmaBtqgrLZ6V9X7NHmH+RNhkhYLtKVjhejI+kIni/3AB5Z1vdd6s+ yo7d1/Pjlr4xINzy8at07XdfgOgVRJy2jCq5ypI2Qup1agasyQOGpncQ8Uxe0mnTjOcVE BSr/qXtNrmBJcgIMpVVrVHVD1k4vQCSTGm/U+TNZDZh+BBX8zOEx5iHX6bpIJpnv3ZkM8 rStY1T69+WehyL6DZRid0dhgpmXDu4YFxrpn8WWZNAsjeejDTopFlyL5zQD0HvA1xs9O6 O/tPHVO5cnQw8zdclvRj38tqC2OJ7qWKf8YeCRlR83rdPsn2+C1RzVSeBuhqIMGIcpQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795927864; 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=Gvc3jlmy20vArCvcT6+fs3lRW53o3PwyobFtglnVL4w=; b=yYm/SGNz7IYctTLc09c3YeAxbmR86ojXSnGNwKCCMIITEmQqnDEdz1os8H0stnfwDDag VkePB7KcO4nnFFtHRR95uasrJ0yJ66zJ8eLFw4oIeS49oNptkmoGEmEUMSyaUyN1mHtFF lzamBfFfikTK+qKznJn6dV5DTP29asNSeNojrO+I/yUzgdvrN2N9Dj2YDqd2dNx4GphJz qD62xHMRxS50DxRZqHsDHqnefGz8vkYqI6MYBdqjywE/cZScAPFd97hIS4TEwghocnBHT 2G4ld2VGjM4W0zYaBS4Xbg7r8VbLHYrF6VDdUVldLIay4zoyVSDAxmQBPbD3361bBUA== 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=MYtBC6kL; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=gjJTwMLX; arc=none smtp.remote-ip=103.168.172.145 Received: from fout-a2-smtp.messagingengine.com (fout-a2-smtp.messagingengine.com [103.168.172.145]) (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 16BBB606A31C for ; Sun, 29 Nov 2026 04:51:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 16BBB606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com 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=MYtBC6kL; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=gjJTwMLX Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 2302AEC09F3 for ; Sat, 28 Nov 2026 23:51:03 -0500 (EST) Received: from phl-frontend-01 ([10.202.2.160]) by phl-compute-03.internal (MEProxy); Sat, 28 Nov 2026 23:51:03 -0500 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=1795927863; x=1796014263; bh=Gvc3jlmy20 vArCvcT6+fs3lRW53o3PwyobFtglnVL4w=; b=MYtBC6kLqPxIA3QjaG2Il55u+F UrNs0R65DYf8ajey4Cxg5t01ojRfD1k8SWd2RAjCyU4wHTiyKIaHnOT84X6905/7 8pJbcJg2Vw/uir3ebN6pk3aHjy9AgThkA3b0o63/GOMOwOLD6Y8GoKGeZzMmBAd/ 6XbeXge5SdjEZrckO/O8eC9KsdzCXazeVeRxtbM5wEf/wvUBRp6gsvyJQxHpW47E MEfJPAVJK1qX3BsRs3nqIOoelPorYxk9dV/GwTkZhN3doRbKFS+ndgqtvBAgPZft 2J4rYCzLtozKl7kOSvm3FmkoX/1ngwlhLm0ChEOArcr6Lk4C/sNprefkukVw== 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= 1795927863; x=1796014263; bh=Gvc3jlmy20vArCvcT6+fs3lRW53o3PwyobF tglnVL4w=; b=gjJTwMLXVHeoPQrTNYS+AQvIBYD8wu1l0aGUkSRmRoEb+lmgQ5I yshvAV9zbcHwUz8CY1yyJwJYi2msidysZoXD12VU2+7R9RTaQEsCFyDgUFrBQHcC nKYX6o+p8fGyuB8YH9kTMRMN0R68Zpa0bDRB3LfCrCYBbm8b3xGCykCzgyF0k9KI 1y2gBfPJu2jgxEAWHR4AiX8KFsFvrZCPYOKWGRspaeO/AV5EuHveWCfk0nyb0bmt 1YCxfaBQgqwVg84xPBiCs/JvWmtVXbL1O+E8DDOsjTAaLHZ8ye2/ohyjSVvaDsC4 lF4a0VVPwE+cbs+zy/gVdpKRklhexUqmm5g== 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; DKIM2-Signature: i=1; m=1; t=1795927863; d=pobox.com; mf=PGdpdHN0ZXJAcG9ib3guY29tPg==; rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+; s=fm2:rsa-sha256:mf67Ks+uMCm9YBWVG7J7a/S563oL9fkNxwbVw1YINqz0anf Mu6br7q0zsJ5Na0YriicQC/B15PLEX99Uh4iXqneUWfJMVPOTCw/HwLtzvhkVqTJ SygKyHgfVY5ufWFW2t+lpuHScm+2qj8kH082BfU7ICPDu6bcHgQwDgitWTQ36WTK 4hEhZO2/UdUDXITS4N5nWl03tHPS1nFfPrd3MHfY2UGm3pFOEZejiAv6bQLv0vy1 wH2h+c3W+laLqkudLJshItRz94A0z/67/DTrQWdtswZVgqrywI9lznwjtDE8Jyct MvMrsnvzkWJm1UpeVZihs44cmxetkTmgp1gcULQ==; 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; Message-Instance: m=1; h=sha256:qksss7oIUEpKRViYwfLIBvRVi1LspNJbInBEmFVwjrI=:3pwDP4bu4+MM3IxKtv+3kLcxW1M2HpKht3bC0plhCLE=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEXmFLTvOi1lu9ZSUfOUcsLv369WHYdjr2F335BmDrND8LvexuVXCtdNNIJyfcXz6 kff55jwvJRKCniVoz1qu8Iw2PMpPueaSFbSq0uPppGtChqO8u/spcEXsT0EvS+1juA/9nx 8FE1EF5QGLEgI3UB/jiRYRquRTqPpRCf2VE75MWKEESkxmBtsVA+7OMF2zwS89N3gAbSVV fPeluWNciBF+svAuMqr370lgH/hJN2N6F21/e4CUHqlEudvDXSo7WHJDftkg7M5D2r/dmg td/8mWgPf55n85rdJRLn3xv6fQ0L4PgafFs+/4xhjFzM034NZaDTmMDkEQQu0Sg32dEAs+ SGa+gWU74rbZC8LWQ4le6SwKz1vYMqRj4QZ27MrEtwXJF4a+GQNUsEW2j+6pzQc305PxaT gGBp8T6hH6x9kHWgRiKMs/8iU3ByU2xwtypyKj/WKE5F+rjkerKFi82t4X9imXOHz2GOFF qjiANWOktWhTSFbvNW5KxPY4P2KUIHnSxrhxcNb531NOftizgiW5ROZN4CFSDFvfBslray oQu3QGP64+XcaHw0OKQa715cxmJjNa4JLmRcXxEtSYW8yu+i8z/D8iku5w+2YHivuuwWgZ XpPai6kd7JWC6nEiOukHXO+0c1QbBrypcLdY5IIeXVAZ6OoyvG8I8V5jimxw X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 28 Nov 2026 23:51:02 -0500 (EST) From: Junio C Hamano To: Matt Hunter Cc: git@vger.kernel.org Subject: Re: [PATCH] doc: gitignore: rejoin related paragraphs In-Reply-To: <20261128071613.3386188-1-m@lfurio.us> (Matt Hunter's message of "Sat, 28 Nov 2026 02:14:34 -0500") References: <20261128071613.3386188-1-m@lfurio.us> Date: Sat, 28 Nov 2026 20:51:01 -0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) 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-Type: text/plain Matt Hunter writes: > Some text has become separated from relevant context by the addition > of another paragraph. "Some text" and "another paragraph" leave the reader guessing which change caused the split, so citing commit 0f0ce07625 (doc: gitignore: clarify pattern base for info/exclude and core.excludesFile, 2026-03-28) as the culprit that tore the two connected parts apart would make the history clear. > 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. "preceding"? I cannot grok the "is related, however" part of the last sentence. Could you clarify? > Signed-off-by: Matt Hunter > --- > > Noticed while looking into > <20261106182945.1316297-1-aniketgupta3001@gmail.com> and > > > 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 In Documentation/gitignore.adoc under "PATTERN FORMAT", the rule for exclude sources outside the working tree builds directly on the beginning-or-middle separator rule, because saying that a leading "/" anchors matches at the repository root presupposes that the reader already knows how a leading or middle separator makes a pattern relative to a .gitignore directory. In the current text, the five bullets run in this order - The slash "`/`" is used as the directory separator... - If there is a separator at the beginning or middle (or both)... - Patterns read from exclude sources that are outside the working tree... - If there is a separator at the end of the pattern... - 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 the `.gitignore` file). Moving the beginning-or-middle separator bullet down below both the exclude-sources bullet and the trailing-slash bullet introduces two problems. - the exclude-sources bullet now appears before the document has explained what a leading or middle separator does in a .gitignore file. - placing the trailing-slash bullet before the beginning-or-middle bullet reverses the "beginning, middle or end" order established by the introductory bullet. Instead, moving the "Patterns read from exclude sources that are outside the working tree..." bullet down after the "For example..." bullet would restore the original sequence from commit 1a58bad014 (gitignore.txt: make slash-rules more readable, 2019-06-04). It would keep the intro, beginning/middle rule, trailing-slash rule, and their combined example together, while placing the outside-working-tree note right after "(all paths are relative from the .gitignore file)". Wouldn't that give us a better presentation, I wonder?