mirror of
https://github.com/git/git.git
synced 2026-01-09 01:34:00 +00:00
Merge branch 'rs/remove-approxidate-relative'
The approxidate() API has been simplified by losing an extra function that did the same thing as another one. * rs/remove-approxidate-relative: date: remove approxidate_relative()
This commit is contained in:
14
date.c
14
date.c
@@ -1366,20 +1366,6 @@ static timestamp_t approxidate_str(const char *date,
|
||||
return (timestamp_t)update_tm(&tm, &now, 0);
|
||||
}
|
||||
|
||||
timestamp_t approxidate_relative(const char *date)
|
||||
{
|
||||
struct timeval tv;
|
||||
timestamp_t timestamp;
|
||||
int offset;
|
||||
int errors = 0;
|
||||
|
||||
if (!parse_date_basic(date, ×tamp, &offset))
|
||||
return timestamp;
|
||||
|
||||
get_time(&tv);
|
||||
return approxidate_str(date, (const struct timeval *) &tv, &errors);
|
||||
}
|
||||
|
||||
timestamp_t approxidate_careful(const char *date, int *error_ret)
|
||||
{
|
||||
struct timeval tv;
|
||||
|
||||
Reference in New Issue
Block a user