pass TIME_DATE_NOW to approxidate future-check
commit073281e2aea7177e27de8a46c5463e2f83833412
authorJeff King <peff@peff.net>
Thu, 13 Nov 2014 11:04:52 +0000 (13 06:04 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Nov 2014 20:57:28 +0000 (13 12:57 -0800)
tree0114a5f4f38d2005021f3057d65372555f9dcb56
parent6c4ab27f2378ce67940b4496365043119d7ffff2
pass TIME_DATE_NOW to approxidate future-check

The approxidate functions accept an extra "now" parameter to
avoid calling time() themselves. We use this in our test
suite to make sure we have a consistent time for computing
relative dates. However, deep in the bowels of approxidate,
we also call time() to check whether possible dates are far
in the future. Let's make sure that the "now" override makes
it to that spot, too, so we can consistently test that
feature.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
date.c