Comment Comment by hifromwork Oh, I like that solution! My problem with dates is indeed lack of reproducibility.The only issue here is that it's not technically monotonic - both commit and author date are changeable: $ git init Initialized empty Git repository in /tmp/kk/.git/ $ echo a > a; git add .; git commit -m a $ echo b > b; git add .; git commit --date="Wed Feb 16 14:00 2011 +0100" -m b $ echo c > c; git add .; GIT_COMMITTER_DATE="Wed Feb 16 14:00 2011 +0100" git commit -m c $ git lg * 523aa1a - (2024-11-28) c - user (HEAD -> master) * cbdbbbe - (2011-02-16) b - user * 1055e1e - (2024-11-28) a - user $ git show --no-patch --format=%ci HEAD 2011-02-16 14:00:00 +0100 But I guess if you use a typical pull-request based workflow this won't happen in practice. parent hifromwork 1 year ago
The only issue here is that it's not technically monotonic - both commit and author date are changeable:
But I guess if you use a typical pull-request based workflow this won't happen in practice.