git view full list of files code example
Example 1: git show staged files
git diff --name-only --cached
Example 2: git show files modified since commit
git diff --name-only HEAD~10 HEAD~5
git diff --name-only --cached
git diff --name-only HEAD~10 HEAD~5