Skip to content

Commit 1c301bc

Browse files
felipecgitster
authored andcommitted
doc: doc-diff: specify date
Earlier we changed the manual page formatting machinery to use the dates from the commit the documentation source was taken from, instead of the date the manual page was produced. When "doc-diff" compares two commits from different dates, the different dates from the two commits would result in unnecessary differences in the output because of the change. Compensate by setting a fixed date when "doc-diff" formats the pages to be compared to work around this issue. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 28fde3a commit 1c301bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Documentation/doc-diff

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ render_tree () {
153153
make -j$parallel -C "$tmp/worktree" \
154154
$makemanflags \
155155
GIT_VERSION=omitted \
156+
GIT_DATE=1970-01-01 \
156157
SOURCE_DATE_EPOCH=0 \
157158
DESTDIR="$tmp/installed/$dname+" \
158159
install-man &&

0 commit comments

Comments
 (0)