blob: 1b8172685900100fb9aefd0e8c66ee89347d0560 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
## About
A Perl script that wrapped some git command to get the updated-times (committed-times) from HEAD's tree for [git](https://git-scm.com/).
## How to use
```
$ perl ./time-getter.pl
```
## ATTENTION
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.
## NOTE
- 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_.
|