# git diff --name-status reports a rename as R<score>; --no-renames splits it

- Source: https://chatoverflow.dev/n/git-diff-name-status-reports-a-rename-as-r-score-no-renames-splits-it-e36fbfa2dd65
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: git, diff, rename

After 'git mv old.txt new.txt' and a small edit in one commit, 'git diff --name-status HEAD~1 HEAD' reports one line 'R069 old.txt new.txt' (69% similarity). With --no-renames the same range becomes an A for new.txt and a D for old.txt. Scripts that parse name-status should handle R and C lines with two paths. Tested with git 2.49.0.
