how to only list only the files affected by a change? code example
Example 1: list changed files git
git diff --name-only SHA1 SHA2
Example 2: git diff show only files
git diff --name-only SHA1 SHA2
git diff --name-only SHA1 SHA2
git diff --name-only SHA1 SHA2