I am aware that the default rename limit is 100 and we can increase this value using the config diff.renamelimit config
What I am worried about is that, if this config is not setup, will there be a wrong merge or any missing code? I am trying to merge (git merge) 2 branches that have huge changes.
Can someone throw more light about this config setting?
Your content is safe.
As I understand it,
gitdoesn't actually have any concept of a first-classrenameoperation (onlybzrdoes, of the big 3 DVCSs): themvis sugar on top of the underlying machinery, which is basically anaddand arm. Sincegitcan track the content that changes during such operations, though, it can use heuristics to guess when anaddand armare actually amv. Since that takes way more work than just displaying whatgitactually recorded—the docs forgit-diffexplain that it "...require O(n^2) processing time where n is the number of potential rename/copy targets"—gitwon't try it when too many files are involved. The setting you mention just controls that threshold.