summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-06-19 01:38:11 +0200
committerAki <please@ignore.pl>2024-06-19 01:38:11 +0200
commitea23c5dc8694db4fbf56ab00b0e099109d206b72 (patch)
treef8f431f5b3e8efd8409457a25120c32743deb111
parentee162a64d3c6697a9f33f5941cd6f08d1bb7059b (diff)
downloaddatever-master.zip
datever-master.tar.gz
datever-master.tar.bz2
Use author time instead of committer timeHEADmaster
-rw-r--r--datever.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/datever.c b/datever.c
index 2e90be7..3e348cd 100644
--- a/datever.c
+++ b/datever.c
@@ -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;