I'm trying to use GIT for tracking changes to a pretty big XML file (about 3 Mb). The file is in UTF-8, and CRLF line ending (I'm working in Windows 10). But for some reason GIT keeps thinking it's binary file and does not show any diff. Or just can't detect changes.
Diff in Sourcetree shows the message "No changes in this file detected, or it is a binary file"
I tried to explicitly set attributes in .gitattributes, but it seems that it's not the reason:
*.xml crlf diff
git check-attr --all -- sorkin.xml
sorkin.xml: diff: set
sorkin.xml: crlf: set
I found when I cut the big file into three smaller pieces (less than 1 Mb), GIT shows the changes for them correctly.
Is there some GIT's limitation on file size when calculating diff?