]> git.ipfire.org Git - thirdparty/git.git/commit - t/t0006-date.sh
Add `human` date format tests.
authorStephen P. Smith <ischis2@cox.net>
Tue, 29 Jan 2019 03:50:16 +0000 (20:50 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Jan 2019 17:40:08 +0000 (09:40 -0800)
commit110a6a161d304cac5e50306c70510f38000224bb
tree51afaaebf3fe0c25e22bd9e47123479a87d8deb5
parentb841d4ff438576fe0c3f69b7d48ba46a442f162b
Add `human` date format tests.

When using `human` several fields are suppressed depending on the time
difference between the reference date and the local computer date. In
cases where the difference is less than a year, the year field is
supppressed. If the time is less than a day; the month and year is
suppressed.

Use TEST_DATE_NOW environment variable when using the test-tool to
hold the expected output strings constant.

Signed-off-by: Stephen P. Smith <ischis2@cox.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0006-date.sh