]> git.ipfire.org Git - thirdparty/git.git/commit
asciidoctor-extensions.rb.in: inject GIT_DATE
authorMartin Ågren <martin.agren@gmail.com>
Fri, 20 Dec 2024 23:18:18 +0000 (00:18 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 21 Dec 2024 01:34:35 +0000 (17:34 -0800)
commitbeb8081f3153fe17907131b94b4c7d32167ff26d
tree60b4bda379395a87147a7caf686c988f9a729fcb
parentc683924d06e3c1f0166054450d4a7ecbabca0756
asciidoctor-extensions.rb.in: inject GIT_DATE

After a38edab7c8 (Makefile: generate doc versions via GIT-VERSION-GEN,
2024-12-06), we no longer inject GIT_DATE when building with
Asciidoctor.

Replace the <date/> tag in the XML to inject the value of GIT_DATE.
Unlike <refmiscinfo/> as handled in a recent commit, we have no reason
to expect that this tag might be missing, so there's no need for "maybe
remove, then add" and we can just outright replace the one that
Asciidoctor has generated based on the mtime of the source file.

Compared to pre-a38edab7c8, we now end up injecting this also in the
build of Git.3pm, which until now has been using the mtime of Git.pm.
That is arguably even a good change since it results in more
reproducible builds.

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