git list changed files in commit code example
Example 1: list of files in git commit
$ git diff-tree --no-commit-id --name-only -r bd61ad98
index.html
javascript/application.js
javascript/ie6.js
Example 2: files changed in a commit
git diff --name-only HEAD HEAD~1
Example 3: list changed files git
git diff --name-only SHA1 SHA2