Given the git repository, I need to generate a dictionary of each changed date with a controlled version of the date as a unix timestamp mapped to its file path. I need the last modified date before git, not the file system.
To do this, I would like to get git to list all version control files along with each file creation date. Exiting git ls-files or git ls-tree -r master would be ideal if their output had timestamps included on each line.
Is there any way to get this output from git?
Update for a larger context: I have a current implementation consisting of a python script that iterates through each file under source control and does git log for each of them, but I do not scale well. The more files in the repo, the more git log calls I have to make. Thus, this led me to find a way to collect this information from git with fewer calls (ideally just 1).
git
derekvanvliet
source share