In two test commits, wherein the first had only the operation git mv file moved_file
, and the second only mv moved_file moved_again_file && git add -A moved_file moved_again_file
, both appear as renames in git status
before commit, but in git commit --verbose
they show as new and removed files.
I'm expecting git diff-tree HEAD
after each commit to show one R
(rename) status but I keep getting two: an A
and a D
.
I'm trying to write a script that will perform actions based on file statuses but I can't properly plan for R
(or C
) statuses if they always show up as add/delete.
Git is version 1.8.3.1, if that makes a difference.