Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » "Add to index" triggers entire workspace refresh?
"Add to index" triggers entire workspace refresh? [message #1742617] Tue, 06 September 2016 07:53 Go to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
Hi,

I have noticed that "Add to index" of a single file will trigger a refresh of the entire workspace, which makes the whole operation take like 5 seconds or more. Is that normal? Any tips to speed it up? This is on Eclipse Neon/Egit 4.4.1

Thanks,
Felix
Re: "Add to index" triggers entire workspace refresh? [message #1742622 is a reply to message #1742617] Tue, 06 September 2016 08:16 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
- from which menu do you invoke "Add to Index"
- how do you detect that the workspace is refreshed ?
- Add to index should update git decorators on the file you run the action but it shouldn'r refresh the workspace
Re: "Add to index" triggers entire workspace refresh? [message #1742639 is a reply to message #1742622] Tue, 06 September 2016 09:57 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
Hi Matthias,

I invoke it from the staging views Unstaged Changes file list.
I can see the refresh inthe Progress View when "Show system jobs" is enabled in the view preferences.
Re: "Add to index" triggers entire workspace refresh? [message #1742754 is a reply to message #1742639] Wed, 07 September 2016 08:10 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
I have looked at the stack traces for the refresh jobs and finally found the preference "Refresh Resources when Index Changes", which is causing the refresh. Why would I ever want to enable this preference? Is this just for synchronization when working in the git bash at the same time?
Re: "Add to index" triggers entire workspace refresh? [message #1743301 is a reply to message #1742754] Wed, 14 September 2016 08:37 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 576
Registered: August 2016
Senior Member
See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=500106 .

It seems that this refresh is triggered:

  • whenever a repository index is changed via EGit. This is IMO completely superfluous.
  • whenever an Eclipse window is activated. That bit might have been intended to catch modifications done outside of Eclipse.
Re: "Add to index" triggers entire workspace refresh? [message #1744190 is a reply to message #1743301] Fri, 23 September 2016 09:50 Go to previous message
Felix Dorner is currently offline Felix DornerFriend
Messages: 392
Registered: December 2015
Senior Member
I now found that when I deactivate the preference above, I have to refresh manually whenever I unstage a deleted file.
Previous Topic:Incorrect Merge by EGIT
Next Topic:How does Eclipse/eGit connect workspace to git repo and its project metadata/source files?
Goto Forum:
  


Current Time: Fri Apr 19 15:40:13 GMT 2024

Powered by FUDForum. Page generated in 0.01978 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top