Eclipse comparison editor stopped showing detailed differences

I have been using eclipse to develop java android for 6 months and I like the comparison editor. In the last few days I have been hacked and I think that I have all my git ducks in a row, or close enough so that things are clean and tidy and I can find old working versions of applications.

But it seems that on the last day or two, the eclipse comparison editor stopped showing diffs! I right-click on uncommitted PlayThread.java and choose to compare with Commit ... or HEAD or a branch or anything else, and no matter how similar the files are, the comparison editor shows one large white bar on the right side and clicks on move on to the next difference, highlighting the entire file!

I looked through git and compared the settings on eclipse and cannot find anything that could help.

Any help getting my beautiful editor to edit will work for me again.

+7
source share
1 answer

The comparison editor shows one large white bar on the right side,

This means that Egit believes that the local content of this file (on your disk) is completely different from what was committed.
One classic case where this happens is the automatic conversion of eol (Windows <=> Unix), so I always set core.autocrlf to false .
See " Git beta on Windows (msysgit) - Unix or DOS line termination .
See Also " Distributing git configuration with code " for managing these eol via a .gitattribute file (except EGit does not yet support a .gitattribute file ).


In this case, OP mwengler reports:

Good that it was.
The way I fixed this was in Eclipse > Window > Preferences > General > Compare/Patch > General on this page where I checked " Ignore white space " and now the editor shows my differences.
But I think that Iโ€™ll turn off this autocrlf , I donโ€™t think that I use something in windows that cannot handle both options

See Egit Error 361503 , which mentions that this โ€œIgnore White Spaceโ€ now also distinguishes the core.autocrlf setting.

+7
source

All Articles