From: Julia Evans Date: Tue, 22 Sep 2026 20:54:17 GMT Subject: Re: [PATCH] doc: add more AsciiDoc cross-references Message-ID: <665e8f8d-7bde-449b-a390-10875135cba2@app.fastmail.com> In-Reply-To: > Oh, I love a change that is so sharply focused on a single issue and > describes what the problem being solved is. :) >> * I tested it by running this script >> (https://gist.github.com/jvns/039c8ed0add092f2179f0dba52ebb896) which >> builds the previous and current views of all the man pages. I looked >> at the output to make sure there were no differences. You can see the >> output in that gist. >> * I believe that asciidoctor will automatically make sure that there >> are no broken links. >> * I also spot checked some of the HTML output to make sure it looked >> reasonable. > >> diff --git a/Documentation/fetch-options.adoc b/Documentation/fetch-options.adoc >> index 035f780e58..47dea1de8e 100644 >> --- a/Documentation/fetch-options.adoc >> +++ b/Documentation/fetch-options.adoc >> @@ -199,7 +199,7 @@ endif::git-pull[] >> providing the tag refspec. >> ifndef::git-pull[] >> + >> -See the PRUNING section below for more details. >> +See the <> section below for more details. > > OK, we already see an example of the <> reference > notation. This needs to be in this form, intead of <>, > because it refers to the named section of a different file, namely > git-fetch.adoc (I am just trying to make sure I understood your > explanation correctly). The reason I explained this in a bit of a confusing way is that I'm not 100% sure in which exact cases we need to use < instead of <. I double checked just now that if in `git-push.adoc`, I change: of a remote (see the section <> below), to: of a remote (see the section <> below), Then there's a problem where in the HTML version it displays as "[REMOTES]" instead of just "REMOTES". But in the <> example, just using <> seems to work. I started working on this way back in December 2025 so I assume that something in this patch was affected by this issue and that's how I came across this problem but I'm not sure exactly what it was.