Just a guess, but it seems to me that Git rename detection did not detect renames when merging. A lot of files in this directory? Have the files been changed much?
Try reusing merge / merge.renameLimit after increasing the value of the configuration options merge.renameLimit or diff.renameLimit . From git help config :
diff.renameLimit The number of files to consider when performing the copy/rename detection; equivalent to the git diff option -l. merge.renameLimit The number of files to consider when performing rename detection during a merge; if not specified, defaults to the value of diff.renameLimit.
You can also try -Xrename-threshold=70 to lower the rename affinity detection threshold. From git help merge (also in git help pull ):
rename-threshold=<n> Controls the similarity threshold used for rename detection. See also git-diff(1) -M.
From git help diff :
-M[<n>], --find-renames[=<n>] Detect renames. If n is specified, it is a threshold on the similarity index (ie amount of addition/deletions compared to the file's size). For example, -M90% means git should consider a delete/add pair to be a rename if more than 90% of the file hasn't changed.
Note that I'm not sure what will happen when line endings are converted between Unix style and Windows style. Git might think that files are 100% different, even if the only difference is line endings, so make sure you both use the same line endings.
source share