Say we are in a git repo with several folders and files. I am hoping to get a list of all files in the repo and their most recent modification timestamp in human readable format.
The list should be sorted by this modification timestamp.
Any ideas on how to approach this?
I am assuming git ls-files
could be used for this but haven't found a good way to solve his problem yet.
Simpler problem:
Say we want to do the same only for the files that are currently reachable on the current branch under a given directory within the repository.
Some related threads and close solutions:
- git ls-files sort by modification time (only files under the current folder, but the datetime output is not in human-readable format)