Skip to contentSkip to conversation

doc: update references to renamed AsciiDoc files

PATCH In review Jouke Witteveen via GitGitGadget 3 participants 4 messages May 21, 2025 – May 22, 2025 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: update references to renamed AsciiDoc files

From: Jouke Witteveen <[email protected]>

The .txt extensions were changed to .adoc in 1f010d6 (doc: use .adoc extension for AsciiDoc files, 2025-01-20). References to the renamed files were not updated yet.

---
doc: update references to renamed AsciiDoc files

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1971%2Fjoukewitteveen%2Frenamed-files-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1971/joukewitteveen/renamed-files-v1
Pull-Request: https://github.com/git/git/pull/1971

 Documentation/gitprotocol-v2.adoc          | 4 ++--
 Documentation/technical/build-systems.adoc | 2 +-
 contrib/subtree/README                     | 2 +-
 mergetools/vimdiff                         | 4 ++--
 sub-process.h                              | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)
Documentation/gitprotocol-v2.adoc +2 -2
index 5598c93e67c3..abc42efcc774 100644
@@ -54,7 +54,7 @@ In general a client can request to speak protocol v2 by sending
 `version=2` through the respective side-channel for the transport being
 used which inevitably sets `GIT_PROTOCOL`.  More information can be
 found in linkgit:gitprotocol-pack[5] and linkgit:gitprotocol-http[5], as well as the
-`GIT_PROTOCOL` definition in `git.txt`. In all cases the
+`GIT_PROTOCOL` definition in `git.adoc`. In all cases the
 response from the server is the capability advertisement.
 
 Git Transport
@@ -99,7 +99,7 @@ Uses the `--http-backend-info-refs` option to
 linkgit:git-upload-pack[1].
 
 The server may need to be configured to pass this header's contents via
-the `GIT_PROTOCOL` variable. See the discussion in `git-http-backend.txt`.
+the `GIT_PROTOCOL` variable. See the discussion in `git-http-backend.adoc`.
 
 Capability Advertisement
 ------------------------
Documentation/technical/build-systems.adoc +1 -1
index d9dafb407c40..1ae2a5292f3b 100644
@@ -32,7 +32,7 @@ that generally have somebody running test pipelines against regularly:
   - OpenBSD
 
 The platforms which must be supported by the tool should be aligned with our
-[platform support policy](platform-support.txt).
+xref:platform-support.adoc[platform support policy].
 
 === Auto-detection of supported features
 
contrib/subtree/README +1 -1
index c686b4a69b12..65d167b678c8 100644
@@ -1,5 +1,5 @@
 
-Please read git-subtree.txt for documentation.
+Please read git-subtree.adoc for documentation.
 
 Please don't contact me using github mail; it's slow, ugly, and worst of
 all, redundant. Email me instead at [email protected] and I'll be happy to
mergetools/vimdiff +2 -2
index ffc9be86c83d..8fca3a2a2fda 100644
@@ -274,8 +274,8 @@ gen_cmd () {
 	# definition.
 	#
 	# The syntax of the "layout definitions" is explained in "Documentation/
-	# mergetools/vimdiff.txt" but you can already intuitively understand how
-	# it works by knowing that...
+	# mergetools/vimdiff.adoc" but you can already intuitively understand
+	# how it works by knowing that...
 	#
 	#   * "+" means "a new vim tab"
 	#   * "/" means "a new vim horizontal split"
sub-process.h +1 -1
index 6a61638a8ace..bfc3959a1b48 100644
@@ -73,7 +73,7 @@ static inline struct child_process *subprocess_get_child_process(
 
 /*
  * Perform the version and capability negotiation as described in the
- * "Handshake" section of long-running-process-protocol.txt using the
+ * "Handshake" section of long-running-process-protocol.adoc using the
  * given requested versions and capabilities. The "versions" and "capabilities"
  * parameters are arrays terminated by a 0 or blank struct.
  *

base-commit: d50a5e8939abfc07c2ff97ae72e9330939b36ee0

Signature · 1 line
gitgitgadget
#1 lore raw
Quoted 5 lines · Jouke Witteveen via GitGitGadget

From: Jouke Witteveen <[email protected]>

The .txt extensions were changed to .adoc in 1f010d6 (doc: use .adoc extension for AsciiDoc files, 2025-01-20). References to the renamed files were not updated yet.

Good spotting. But ...

Quoted 20 lines

---
doc: update references to renamed AsciiDoc files

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1971%2Fjoukewitteveen%2Frenamed-files-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1971/joukewitteveen/renamed-files-v1
Pull-Request: https://github.com/git/git/pull/1971

 Documentation/gitprotocol-v2.adoc          | 4 ++--
 Documentation/technical/build-systems.adoc | 2 +-
 contrib/subtree/README                     | 2 +-
 mergetools/vimdiff                         | 4 ++--
 sub-process.h                              | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)
Documentation/gitprotocol-v2.adoc +0 -0
index 5598c93e67c3..abc42efcc774 100644

Documentation/gitprotocol-v2.adoc In general a client can request to speak protocol v2 by sending · line 58

Quoted 6 lines
Documentation/gitprotocol-v2.adoc +1 -1
@@ -54,7 +54,7 @@ In general a client can request to speak protocol v2 by sending
 `version=2` through the respective side-channel for the transport being
 used which inevitably sets `GIT_PROTOCOL`.  More information can be
 found in linkgit:gitprotocol-pack[5] and linkgit:gitprotocol-http[5], as well as the
-`GIT_PROTOCOL` definition in `git.txt`. In all cases the
+`GIT_PROTOCOL` definition in `git.adoc`. In all cases the
 response from the server is the capability advertisement.

... shouldn't this reference be also linkgit:git[1] just like the two references on the previous line? Given that such a correction needs to be made on exactly the same line, I wonder if we want to do the change we see here, which stops at an in-between state, rather than going to the end game of using linkgit: properly.

Documentation/gitprotocol-v2.adoc Uses the `--http-backend-info-refs` option to · line 102

Quoted 3 lines
Documentation/gitprotocol-v2.adoc +1 -1
 The server may need to be configured to pass this header's contents via
-the `GIT_PROTOCOL` variable. See the discussion in `git-http-backend.txt`.
+the `GIT_PROTOCOL` variable. See the discussion in `git-http-backend.adoc`.

Ditto. These are specifically so true because ...

Documentation/technical/build-systems.adoc that generally have somebody running test pipelines against regularly: · line 35

Quoted 10 lines
Documentation/technical/build-systems.adoc +1 -1
index d9dafb407c40..1ae2a5292f3b 100644
@@ -32,7 +32,7 @@ that generally have somebody running test pipelines against regularly:
   - OpenBSD
 
 The platforms which must be supported by the tool should be aligned with our
-[platform support policy](platform-support.txt).
+xref:platform-support.adoc[platform support policy].

... this one did not stop at "txt" -> "adoc" replacement, but attempts to make a proper link.

Side note: I do not think we are using an explicit xref: syntax in our documentation anywhere; have you checked how this gets rendered?

contrib/subtree/README

Quoted 3 lines
Documentation/technical/build-systems.adoc +0 -0
 === Auto-detection of supported features
 
contrib/subtree/README +0 -0

Old names of documentation source pages that ends with .txt outside anything that themselves are .adoc files, like this one, unlike the above, should be just ".txt" -> ".adoc" replacements. Everything below looked fine to me.

Thanks.

#2 lore raw
Quoted 14 lines · Junio C Hamano
Quoted 11 lines · Jouke Witteveen via GitGitGadget

From: Jouke Witteveen <[email protected]>

Documentation/gitprotocol-v2.adoc +0 -1
index 5598c93e67c3..abc42efcc774 100644
@@ -54,7 +54,7 @@ In general a client can request to speak protocol v2 by sending
 `version=2` through the respective side-channel for the transport being
 used which inevitably sets `GIT_PROTOCOL`.  More information can be
 found in linkgit:gitprotocol-pack[5] and linkgit:gitprotocol-http[5], as well as the
-`GIT_PROTOCOL` definition in `git.txt`. In all cases the
Quoted 8 lines

Documentation/gitprotocol-v2.adoc In general a client can request to speak protocol v2 by sending · line 58

Quoted 2 lines
Documentation/gitprotocol-v2.adoc +1 -0
+`GIT_PROTOCOL` definition in `git.adoc`. In all cases the
 response from the server is the capability advertisement.

... shouldn't this reference be also linkgit:git[1] just like the two references on the previous line? Given that such a correction needs to be made on exactly the same line, I wonder if we want to do the change we see here, which stops at an in-between state, rather than going to the end game of using linkgit: properly.

Yeah, I should have looked a bit further and done that. I see you did it for me. Thanks!

Quoted 14 lines

Documentation/technical/build-systems.adoc that generally have somebody running test pipelines against regularly: · line 35

Quoted 10 lines
Documentation/technical/build-systems.adoc +1 -1
index d9dafb407c40..1ae2a5292f3b 100644
@@ -32,7 +32,7 @@ that generally have somebody running test pipelines against regularly:
   - OpenBSD
 
 The platforms which must be supported by the tool should be aligned with our
-[platform support policy](platform-support.txt).
+xref:platform-support.adoc[platform support policy].

... this one did not stop at "txt" -> "adoc" replacement, but attempts to make a proper link.

Quoted 4 lines

Side note: I do not think we are using an explicit xref: syntax in our documentation anywhere; have you checked how this gets rendered?

Turns out I was too lazy and blindly replaced what I recognized as a Markdown link to the appropriate AsciiDoc link. However, the inter-document xref functionality is unavailable in the legacy AsciiDoc processor (asciidoc) and is disabled in Asciidoctor by our use of --atribute compat-mode. I'm not sure what the right course of action is now. The old link was wrong, but the suggested change only starts working when we drop support for asciidoc :-(.

Sorry to introduce more worries than fixing.

#3 lore raw
Quoted 12 lines · Jouke Witteveen
Quoted 11 lines
Quoted 3 lines

The platforms which must be supported by the tool should be aligned with our
-[platform support policy](platform-support.txt). +xref:platform-support.adoc[platform support policy].

... this one did not stop at "txt" -> "adoc" replacement, but attempts to make a proper link.

Side note: I do not think we are using an explicit xref: syntax in our documentation anywhere; have you checked how this gets rendered?

Quoted 7 lines

Turns out I was too lazy and blindly replaced what I recognized as a Markdown link to the appropriate AsciiDoc link. However, the inter-document xref functionality is unavailable in the legacy AsciiDoc processor (asciidoc) and is disabled in Asciidoctor by our use of --atribute compat-mode. I'm not sure what the right course of action is now. The old link was wrong, but the suggested change only starts working when we drop support for asciidoc :-(.

Perhaps let the sleeping dog lie for now by doing "txt" -> "adoc" only, with a bit of comment why we are not doing xref: yet next to it, perhaps like:

Documentation/technical/build-systems.adoc +4 -1
index d9dafb407c..3c5237b9fd 100644
@@ -32,7 +32,10 @@ that generally have somebody running test pipelines against regularly:
   - OpenBSD
 
 The platforms which must be supported by the tool should be aligned with our
-[platform support policy](platform-support.txt).
+platform support policy (see platform-support.adoc).
+// once we lose AsciiDoc compatibility, we can start writing the above as:
+// xref:platform-support.adoc#platform-support-policy[platform support policy]
+// or something like that, but until then....
 
 === Auto-detection of supported features
 

Thanks.