I made changes to a few lines of code in a certain class and each time I try to commit them, GitKraken claims that I'm attempting to commit the whole class. Every 1000+ lines of it.
I think this is some sort of automated code styling done in IntelliJ IDEA. I can't see the actual change anywhere but it has to be this.
Is there a setting to prevent IDEA from doing such stylings automatically to classes?
EDIT 1 - More info on the problem:
This problem only occurs in this one particular class. My colleague checked his code styling settings in his IDEA and they are identical to mine.
EDIT 2 - More info on the problem:
In Notepad++ when "showing every character" This particular class has only CR at the end of lines whereas all the other classes have CR LF.
No idea why is that. (pun not intended)
Any ideas how to fix this? (pun not intended)
EDIT 3 - Found the solution:
In notepad++ it is possible to replace even these non-visible, special characters so we added the LF to the end of each line and now it works. Not sure why these had disappeared in the first place.