Merges cannot use git blame -C , but git merge has a rename. On the man page:
rename-threshold=<n> Controls the similarity threshold used for rename detection. See also git-diff(1) -M.
Git Rename Threshold is probably too high to detect your renames during merge. It is also possible that detection is being calculated too intensively. Try a test merge with a lower rename threshold, say 75:
git merge -X rename-threshold=75 <branch>
It may take you a while to find the number you need, and if git quits because it is too hard to calculate, try setting git config merge.renamelimit 0 , discussed in the thread mentioned above.
This answer may also help if the above fails. I have not tried -X ignore-space-change or a related script, but this may be worth the investigation.
source share