diff options
| author | Ben Straub <bstraub@github.com> | 2012-05-30 11:46:42 -0700 |
|---|---|---|
| committer | Ben Straub <bstraub@github.com> | 2012-05-30 11:46:42 -0700 |
| commit | dd9e4abc1ba1701efac0c3af3b1ceede2bd561a4 (patch) | |
| tree | 22ee9661ca23c403041738a4ec8e358738c4e7ab /src/revparse.c | |
| parent | 1ce4cc0164fbc14fcb7f686483aa581bc946bfdb (diff) | |
| download | libgit2-dd9e4abc1ba1701efac0c3af3b1ceede2bd561a4.tar.gz | |
Approxidate: use libgit2 naming/calling conventions.
Also use git_time_t (64-bit integer) for time
values, although the 2038 problem is still present
on 32-bit machines.
Diffstat (limited to 'src/revparse.c')
| -rw-r--r-- | src/revparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/revparse.c b/src/revparse.c index 8eb5c11ae..3615ac519 100644 --- a/src/revparse.c +++ b/src/revparse.c @@ -200,11 +200,11 @@ static int walk_ref_history(git_object **out, git_repository *repo, const char * } } else { int date_error = 0; - time_t timestamp; + git_time_t timestamp; git_buf datebuf = GIT_BUF_INIT; git_buf_put(&datebuf, reflogspec+2, reflogspeclen-3); - timestamp = approxidate_careful(git_buf_cstr(&datebuf), &date_error); + date_error = git__date_parse(×tamp, git_buf_cstr(&datebuf)); /* @{u} or @{upstream} -> upstream branch, for a tracking branch. This is stored in the config. */ if (!strcmp(reflogspec, "@{u}") || !strcmp(reflogspec, "@{upstream}")) { |
