Is there a way to limit git diff to changed files?
I\'d like to see the differences between two commits, but exclude paths that don\'t exist in one or t
You are looking for --diff-filter=M to show only files *M*odified between the two branches.
From man git-diff
--diff-filter=[ACDMRTUXB*]Select only files that are
AAddedCCopiedDDeletedMModifiedRRenamedThave their type (mode) changedUUnmergedXUnknownBhave had their pairing Broken*All-or-noneAny combination of the filter characters may be used.
When * (All-or-none) is added to the combination, all paths are selected if there is any file that matches other criteria in the comparison; if there is no file that matches other criteria, nothing is selected.