mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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>
This commit is contained in:
parent
5bb1cb6d02
commit
04c4c766ec
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue