Commit time of each file #1367
Answered
by
Byron
dsharma522
asked this question in
Q&A
-
How can we get the commit time of each file in the tree by traversing it recursively? |
Beta Was this translation helpful? Give feedback.
Answered by
Byron
Oct 24, 2021
Replies: 1 comment
-
The commit time is only available in commits themselves. Hence, in order to assign a timestamp to changes between commits, one has to diff them. There are probably plenty of algorithms that are feasible, implementing them fast isn't that easy though. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Byron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The commit time is only available in commits themselves. Hence, in order to assign a timestamp to changes between commits, one has to diff them. There are probably plenty of algorithms that are feasible, implementing them fast isn't that easy though.
If performance becomes a problem, the python bindings to libgit2 might help.