Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git stops resolving files as renamed after certain number of added/deleted files is reached

Tags:

git

move

I have big ant project versioned in Git. We are currently changing building tool to maven. It means move all java source files into different directory structure. I created bash script to move java sources into one directory tree and other resources to another dir. tree. I'm converting one module (source code set) after another.

I run git status after moving each module and at first i see right status RENAMED with each file.

After i move another module and number of moved files reach about 100, git stops recognizing moved files and decouples them. That means that after running git status i see each file (event those recognized correctly before) twice. One DELETED in old path and one NEW FILE in new path.

Is there something that limits amount of files automatically resolved as renamed?

like image 665
UltraMaster Avatar asked Mar 14 '13 11:03

UltraMaster


1 Answers

What is your value of

diff.renameLimit 

?

Try to set

git config diff.renameLimit 0

to disable the limit or try to set a very high value.

like image 138
Patrick B. Avatar answered Nov 14 '22 02:11

Patrick B.