]> git.ipfire.org Git - thirdparty/git.git/commitdiff
asciidoctor-extensions.rb.in: add missing word
authorMartin Ågren <martin.agren@gmail.com>
Fri, 20 Dec 2024 23:18:17 +0000 (00:18 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 21 Dec 2024 01:34:35 +0000 (17:34 -0800)
Commit a38edab7c8 (Makefile: generate doc versions via GIT-VERSION-GEN,
2024-12-06) stopped providing an attribute value "Git $(GIT_VERSION)" to
asciidoc/Asciidoctor over the command line. Instead, we now provide the
attribute to asciidoc through a generated asciidoc.conf, where the value
is generated as "Git @GIT_VERSION@".

In the similar mechanism for Asciidoctor, we forgot the "Git" prefix.
Restore it.

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/asciidoctor-extensions.rb.in

index d8d06f9a57a0cc089c170b695189ddeb3a75bd61..fd1b84c2beafbbb057eb55ae40550a215d30740c 100644 (file)
@@ -32,7 +32,7 @@ module Git
           output = output.sub(/<refmiscinfo class="source">.*?<\/refmiscinfo>/, "")
           output = output.sub(/<refmiscinfo class="manual">.*?<\/refmiscinfo>/, "")
           new_tags = "" \
-            "<refmiscinfo class=\"source\">@GIT_VERSION@</refmiscinfo>\n" \
+            "<refmiscinfo class=\"source\">Git @GIT_VERSION@</refmiscinfo>\n" \
             "<refmiscinfo class=\"manual\">Git Manual</refmiscinfo>\n"
           output = output.sub(/<\/refmeta>/, new_tags + "</refmeta>")
         end