Eclipse's Package Explorer is marking my file as Dirty.
But when I compare the file with the index (ie, Right click > Compare With > Git Index), I see no differences other than my line endings, which should have been dealt with. Note the line ending differences in my screenshot of the compare view. (left side is working file, right side is the index)
I've already configured Eclipse to handle whitespaces in the following areas:
- Checked the checkbox in Windows > Preferences > Compare/Patch > Ignore white space (tells Eclipse not to mark whitespace differences in the Compare view)
core.autocrlf=truein Windows > Preferences > Team > Git > Configuration > User Settings and Windows > Preferences > Team > Git > Configuration > System Settings (tells EGit to ignore whitespaces properly, I think)
Now, the question is, why is my file still marked as dirty? Am I missing a step?
- Our Git repository has CRLF line endings.
- Salesforce has LF line endings.