How do I list all the files for a commit in git

Posted by Philip Fourie on Stack Overflow See other posts from Stack Overflow or by Philip Fourie
Published on 2009-01-08T12:26:32Z Indexed on 2010/03/28 7:43 UTC
Read the original article Hit count: 229

Filed under:

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.

© Stack Overflow or respective owner

Related posts about git