diff options
| author | René Scharfe <l.s.r@web.de> | 2023-04-08 11:35:24 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-04-10 08:46:40 -0700 |
| commit | 8a7f0b666fc749166421669fba62b1000321bd26 (patch) | |
| tree | f3e5a25ccaa39712eb8d99af80522cef55cb3b94 /t/helper/test-date.c | |
| parent | 73876f4861cd3d187a4682290ab75c9dccadbc56 (diff) | |
| download | git-8a7f0b666fc749166421669fba62b1000321bd26.tar.gz | |
date: remove approxidate_relative()
When 29f4332e66 (Quit passing 'now' to date code, 2019-09-11) removed
its timeval parameter, approxidate_relative() became equivalent to
approxidate(). Convert its last two call sites and remove the redundant
function.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-date.c')
| -rw-r--r-- | t/helper/test-date.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/helper/test-date.c b/t/helper/test-date.c index 45951b1df8..80ffe9fec4 100644 --- a/t/helper/test-date.c +++ b/t/helper/test-date.c @@ -81,7 +81,7 @@ static void parse_approxidate(const char **argv) { for (; *argv; argv++) { timestamp_t t; - t = approxidate_relative(*argv); + t = approxidate(*argv); printf("%s -> %s\n", *argv, show_date(t, 0, DATE_MODE(ISO8601))); } } @@ -90,7 +90,7 @@ static void parse_approx_timestamp(const char **argv) { for (; *argv; argv++) { timestamp_t t; - t = approxidate_relative(*argv); + t = approxidate(*argv); printf("%s -> %"PRItime"\n", *argv, t); } } |
