A Perl script, that wrapped some git command to get the updated-timestamps (committed-timestamps) from HEAD's tree for git.
$ perl ./time-getter.pl
On basically git concept, objects that have time state (committer committed time and author committed time) is ONLY commit-objects.
Probably this concept is itself intentionally, so this wrapper script is expected to use in some cases as a workaround.
So if possible, you should consider another approach to the case before using this wrapper script.
- This script prints timestamps where each blob-object has changed between trees that are traced by commit-objects history. So if a file is changed in a branch and merged to the main branch with merge commit (e.g. using
--no-ff
option), the timestamp comes from the merge commit. - All timestamps are committer-commit timestamps, not author-commit timestamps.