diff options
author | Jeff King <peff@peff.net> | 2019-03-20 04:14:30 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-20 18:34:09 +0900 |
commit | 04c4c766ec8252674496ab232b63c1860bcbc0a9 (patch) | |
tree | 1848b93ec02d15eb6d239d94235373cf3781bf56 | |
parent | update-index: drop unused prefix_length parameter from do_reupdate() (diff) | |
download | tgif-04c4c766ec8252674496ab232b63c1860bcbc0a9.tar.xz |
test-date: drop unused "now" parameter from parse_dates()
We only need the current time for relative dates like "5
minutes ago", and those are parsed only through approxidate,
not the strict parser used by parse_dates().
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-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 b3253803ac..585347ea48 100644 --- a/t/helper/test-date.c +++ b/t/helper/test-date.c @@ -55,7 +55,7 @@ static void show_dates(const char **argv, const char *format) } } -static void parse_dates(const char **argv, struct timeval *now) +static void parse_dates(const char **argv) { struct strbuf result = STRBUF_INIT; @@ -124,7 +124,7 @@ int cmd__date(int argc, const char **argv) else if (skip_prefix(*argv, "show:", &x)) show_dates(argv+1, x); else if (!strcmp(*argv, "parse")) - parse_dates(argv+1, &now); + parse_dates(argv+1); else if (!strcmp(*argv, "approxidate")) parse_approxidate(argv+1, &now); else if (!strcmp(*argv, "timestamp")) |