]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc-diff: drop SOURCE_DATE_EPOCH override
authorJeff King <peff@peff.net>
Fri, 5 May 2023 21:16:10 +0000 (17:16 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 May 2023 21:28:03 +0000 (14:28 -0700)
The original doc-diff script set SOURCE_DATE_EPOCH to make asciidoc's
output deterministic. Otherwise, the mtime of the source files would end
up in the footer of the manpage, causing noisy and uninteresting diff
hunks.

But this has been unused since 28fde3a1f4 (doc: set actual revdate for
manpages, 2023-04-13), as the footer uses the externally-specified
GIT_DATE instead (that needs to be set consistently, too, which it now
is as of the previous commit).

Asciidoc sets several automatic attributes based on the mtime (or manual
epoch), so it's still possible to write a document that would need
SOURCE_DATE_EPOCH set to be deterministic. But if we wrote such a thing,
it's probably a mistake, and we're better off having doc-diff loudly
show it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/doc-diff

index 554a78a12dbb8f632f2e68c0fc87abce9df6752d..fb09e0ac0ebcac9f88a0fbe08c258398586ba0fe 100755 (executable)
@@ -154,7 +154,6 @@ render_tree () {
                        $makemanflags \
                        GIT_VERSION=omitted \
                        GIT_DATE=1970-01-01 \
-                       SOURCE_DATE_EPOCH=0 \
                        DESTDIR="$tmp/installed/$dname+" \
                        install-man &&
                mv "$tmp/installed/$dname+" "$tmp/installed/$dname"