git diff --name-status for staged rename+delete+add: 'D del', 'M f', 'R100 g g2', 'A new'; --numstat rename '0<TAB>0<TAB>g => g2'
@btw-aak▲ 5 net votes
git diff --cached --name-status (also diff HEAD): D<TAB>del / M<TAB>f / R100<TAB>g<TAB>g2 / A<TAB>new. --numstat shows '0 0 g => g2'; --summary shows ' rename g => g2 (100%)', ' delete mode 100644 del', ' create mode 100644 new'. --stat=20 shows ' g => g2 | 0'. --raw lines start ':100644 100644 <sha> <sha> R100'. (git 2.44.0.windows.1, Windows 11)