Community
Participate
Working Groups
On my daily work with git I have to use the console sometimes because egit does not provide all needed features yet. Anyway, the synchronization between the repository and the workspace resources is very slow. I often have to refresh the resources manually. i think egit should provide an effective refresh mechanism that keeps the resources and the repository always in sync,
Even if I manually select Refresh, egit doesn't recognize it: I changed a file outside of Eclipse and the icon in the Eclipse Project Explorer didn't changed to ">" to mark this file as changed. Even after a manual refresh it was not updated but after manually selecting Compare With ...
(In reply to comment #1) > Even if I manually select Refresh, egit doesn't recognize it: Let me continue ... I even closed the project to see whether the icon changes on reopening. It didn't and also the source file in the compare editor vanished (only the HEAD version is visible). After reopening the Compare Editor isn't updated with the now available file from the opened project.
Changes done outside Eclipse should be picked up by an egit background job which runs each 10 seconds. This job checks for changes in git index or branch updates but not for file modifications happening in the working tree. If the option "Preferences > Team > Git" - "Refresh resources when index changes" is switched on an index or branch update change detected in this way will trigger a refresh of the Eclipse resource model. Changes in the working tree are not immediately seen by the decorator as it is backed by the Eclipse resource model hence if this is out of sync with the underlying file system you need a manual refresh. Alternatively you may switch on the auto workspace refresh under "Preferences > Workspace > Refresh using native hooks or polling" (3.7, in 3.6 this option has a different name). Then this refresh happens automatically.
I don't think that this is a problem anymore, there were some performance improvements for re-indexing and the Eclipse workspace resource refresh can be configured as described by Matthias. Let's resolve this. Please feel free to open a new bug report for specific problem that are still there with the newest version of EGit.