diff options
author | Aki <please@ignore.pl> | 2024-06-19 01:38:11 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-06-19 01:38:11 +0200 |
commit | ea23c5dc8694db4fbf56ab00b0e099109d206b72 (patch) | |
tree | f8f431f5b3e8efd8409457a25120c32743deb111 | |
parent | ee162a64d3c6697a9f33f5941cd6f08d1bb7059b (diff) | |
download | datever-ea23c5dc8694db4fbf56ab00b0e099109d206b72.zip datever-ea23c5dc8694db4fbf56ab00b0e099109d206b72.tar.gz datever-ea23c5dc8694db4fbf56ab00b0e099109d206b72.tar.bz2 |
-rw-r--r-- | datever.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -80,7 +80,8 @@ find_latest(git_repository* const repo) struct datever ver = datever_init(); while (0 == git_revwalk_next(&oid, walker)) { must("find commit", git_commit_lookup(&commit, repo, &oid)); - ver = datever_from_time(git_commit_time(commit)); + const git_signature* author = git_commit_author(commit); + ver = datever_from_time(author->when.time); if (datever_is_valid(&prev)) { if (0 == datever_compare(&prev, &ver)) ver.revision += prev.revision; |