How do I list all the files for a commit in git
- by Philip Fourie
I need to write a script that retrieves all files that were committed for a given SHA1.
I have difficulty getting a nice formatted list of all files that were part of the commit.
I have tried:
git show a303aa90779efdd2f6b9d90693e2cbbbe4613c1d
Although listing the files it also includes additional diff information that I don't need. I am hoping there is a simple git command that will provide such a list without me having to parse it from the above command.