]> git.ipfire.org Git - thirdparty/git.git/commit - date.c
Quit passing 'now' to date code
authorStephen P. Smith <ischis2@cox.net>
Thu, 12 Sep 2019 04:11:01 +0000 (21:11 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Sep 2019 18:03:51 +0000 (11:03 -0700)
commit29f4332e66abf41e90d2f38e62370a42d8549c7e
treec4080bd9f5e7f2bad875eaf63fdff0dfaa79e3db
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
Quit passing 'now' to date code

Commit b841d4ff43 (Add `human` format to test-tool, 2019-01-28) added
a get_time() function which allows $GIT_TEST_DATE_NOW in the
environment to override the current time. So we no longer need to
interpret that variable in cmd__date().

Therefore, we can stop passing the "now" parameter down through the
date functions, since nobody uses them. Note that we do need to make
sure all of the previous callers that took a "now" parameter are
correctly using get_time().

Signed-off-by: Stephen P. Smith <ischis2@cox.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
date.c
t/helper/test-date.c