I’ve been using eclipse for java android development for 6 months and I love the compare editor. In the last few days I have been hacking away and I think I have all my git ducks in a row, or close enough that things are clean and neat and I can find old working versions of apps.
But it seems in the last day or two, the eclipse compare editor has stopped showing diffs! i right click on uncommitted PlayThread.java and choose to compare with Commit… or HEAD or branch or anything, and no matter how similar the files might be, the compare editor shows one big white bar on its right side, and clicking to go to the next difference highlights the whole file!
I have looked through the git and compare preferences on eclipse and can’t find anything that might help.
Any help getting my beautiful compare editor working for me again would be greatly appreciated!
Note the latest EGit 5.3.0 (Feb. 2020, 8 years later) improves the right side of the compare editor, using the
Eclipse -> Preferences -> Text Editors -> Show whitespace charactersmentioned in Vivek‘s answer.Original answer (May 2012):
That means EGit considers the local content of that file (on your disk) differs completely from what have been committed.
The one classic case where that happens is for automatic EOL conversion (Windows
<=>Unix), which is why I always setcore.autocrlftofalse.See "Git beta on Windows (msysgit) – Unix or DOS line termination".
See also "Distributing git configuration with the code" for managing those EOLs through
.gitattributefile (except EGit doesn’t support yet.gitattributefile).In this instance, the OP mwengler reports:
See EGit bug 361503 which mentions that this "Ignore White Space" now also honors the
core.autocrlfsetting.Eclipse 4.29 (Q3 2023) adds: