diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-04-27 16:00:59 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-04-27 16:00:59 -0700 |
| commit | d6661e684331433c3df8ebae3ca1098cd3ecd45e (patch) | |
| tree | 98180ff86c266dfd6ea79a00ec340e41bbc46c33 | |
| parent | Merge branch 'ds/fsck-pack-revindex' (diff) | |
| parent | doc: set actual revdate for manpages (diff) | |
| download | git-d6661e684331433c3df8ebae3ca1098cd3ecd45e.tar.gz git-d6661e684331433c3df8ebae3ca1098cd3ecd45e.zip | |
Merge branch 'fc/doc-use-datestamp-in-commit'
Instead of the time the formatter was run, show the timestamp
recorded in the commit in the documentation.
* fc/doc-use-datestamp-in-commit:
doc: set actual revdate for manpages
| -rw-r--r-- | Documentation/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile index 3133ea3182..b629176d7d 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -144,13 +144,16 @@ man5dir = $(mandir)/man5 man7dir = $(mandir)/man7 # DESTDIR = +GIT_DATE := $(shell git show --quiet --pretty='%as') + ASCIIDOC = asciidoc ASCIIDOC_EXTRA = ASCIIDOC_HTML = xhtml11 ASCIIDOC_DOCBOOK = docbook ASCIIDOC_CONF = -f asciidoc.conf ASCIIDOC_COMMON = $(ASCIIDOC) $(ASCIIDOC_EXTRA) $(ASCIIDOC_CONF) \ - -amanmanual='Git Manual' -amansource='Git $(GIT_VERSION)' + -amanmanual='Git Manual' -amansource='Git $(GIT_VERSION)' \ + -arevdate='$(GIT_DATE)' ASCIIDOC_DEPS = asciidoc.conf GIT-ASCIIDOCFLAGS TXT_TO_HTML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_HTML) TXT_TO_XML = $(ASCIIDOC_COMMON) -b $(ASCIIDOC_DOCBOOK) |
