Skip to content

Commit

Permalink
install-webdoc: filter timestamp-only changes correctly
Browse files Browse the repository at this point in the history
The timestamp that follows "Last updated " is formatted differently
depending on the version of AsciiDoc.  Looking at 4604fe56 on "html"
branch, you can see that AsciiDoc 7.0.2 used to give "02-Jul-2008 03:02:14
UTC" but AsciiDoc 8.2.5 gave "2008-09-19 06:33:25 UTC".  We haven't been
correctly filtering out phantom changes that result from only the build
date for some time now, it seems.

Just filter lines that begin with "Last updated ".

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Sep 1, 2010
1 parent e3efa9c commit 7e42332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/install-webdoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ do
then
: did not match
elif test -f "$T/$h" &&
$DIFF -u -I'Last updated [0-9][0-9]-[A-Z][a-z][a-z]-' "$T/$h" "$h"
$DIFF -u -I'^Last updated ' "$T/$h" "$h"
then
:; # up to date
else
Expand Down

0 comments on commit 7e42332

Please sign in to comment.