Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » When is the staging view updated?
When is the staging view updated? [message #1468189] Mon, 10 November 2014 16:52 Go to next message
Ernesto Posse is currently offline Ernesto PosseFriend
Messages: 381
Registered: March 2011
Senior Member
I noticed that the staging view, the unstaged changes list doesn't get refreshed automatically when some change is made (e.g. deleting a file) and it can take up to a minute or two before the changes are shown, while on the command-line doing a 'git status' will show the changes right away.

When does EGit refresh the staging view? is there a way to manually refresh the staging view?

Thanks

PS: I'm using EGit 3.4.1 on Luna SR1 4.4.1.
Re: When is the staging view updated? [message #1468591 is a reply to message #1468189] Tue, 11 November 2014 00:18 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1105
Registered: July 2009
Senior Member
The staging view is updated based on Eclipse resourceChanged events, so it should refresh automatically and instantaneously
if changes are done in Eclipse and the changed files are contained in an Eclipse project. Files not in a project are not seen
by the Eclipse resource model hence no events are fired. If you change files outside of Eclipse , e.g. using another editor
also no change events are triggered by Eclipse. EGit has a background thread (class RepositoryChangeScanner) checking
for changes every 10 seconds. If this thread detects changes it should also update the staging view.
Re: When is the staging view updated? [message #1470339 is a reply to message #1468591] Wed, 12 November 2014 09:00 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 295
Registered: March 2012
Senior Member
On 11/11/2014 01:18, Matthias Sohn wrote:
> The staging view is updated based on Eclipse resourceChanged events, so
> it should refresh automatically and instantaneously
> if changes are done in Eclipse and the changed files are contained in an
> Eclipse project. Files not in a project are not seen
> by the Eclipse resource model hence no events are fired. If you change
> files outside of Eclipse , e.g. using another editor
> also no change events are triggered by Eclipse. EGit has a background
> thread (class RepositoryChangeScanner) checking
> for changes every 10 seconds. If this thread detects changes it should
> also update the staging view.
>

There's also a little refresh icon in the top right corner of the view.
I find myself using this at times too.
Re: When is the staging view updated? [message #1471125 is a reply to message #1470339] Wed, 12 November 2014 22:34 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1105
Registered: July 2009
Senior Member
yes, using the refresh button you can refresh manually
Previous Topic:SOLVED: Eclipse keeps asking for passphrase (even when entered)
Next Topic:Does Egit rumtime override the settings in the plugin.xml?
Goto Forum:
  


Current Time: Mon Dec 09 18:19:25 GMT 2019

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

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

Back to the top