Bug 567600 - Key binding for refresh not active in staging and history view
Summary: Key binding for refresh not active in staging and history view
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 5.9   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 5.10   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-05 06:00 EDT by Sven Köhler CLA
Modified: 2020-10-06 07:07 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Köhler CLA 2020-10-05 06:00:26 EDT
When you manage your git repository with Eclipse, it's a real pain. Unless the whole git repository has been imported as a project in Eclipse, I cannot see how I can refresh the working tree to make Eclipse/Egit aware of changes in the filesystem.

In the Git Staging view, changes that have been done in the file system while Eclipse is running are simply not shown. I can press F5 while selecting the working tree of the corresponding repository. Nothing happens. I can press F5 while the focus is on the Git Staging view. Nothing happens. In the (right click) context menu of the working tree, there is no refresh action either.

Having "Refresh using native hooks or polling" enabled in the workspace settings has no effect either.

A user is also affected, if the projects imported into eclipse only cover certain subfolders. Changing files outside that hierarchy will not show up in the Git Staging view as Unstaged Changes.

Please consider added the necessary menu items and shortcuts (F5) so that users can update the cached information about the filesystem if files have been changes outside of Eclipse.
Comment 1 Sven Köhler CLA 2020-10-05 06:01:13 EDT
A workaround is to restart Eclipse: then changes in the filesystem are shown.
Comment 2 Sven Köhler CLA 2020-10-05 06:44:14 EDT
To make it clear, I refer to changed done outside of Eclipse. If changes are done inside Eclipse, they are immediately reflected in the Git Staging view.
Comment 3 Thomas Wolf CLA 2020-10-05 07:02:27 EDT
Work-around: click the refresh button in the staging view's toolbar.

Refresh via F5 in the git repositories view works, but doesn't update the staging view.
Comment 4 Eclipse Genie CLA 2020-10-05 07:16:52 EDT
New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/170321
Comment 5 Sven Köhler CLA 2020-10-05 14:02:44 EDT
I apologize, I missed the refresh button in the Git Staging view.
Is it possible to also make F5 available when the focus is on the Git Staging view?
Comment 6 Thomas Wolf CLA 2020-10-05 14:55:47 EDT
(In reply to Sven Köhler from comment #5)
> I apologize, I missed the refresh button in the Git Staging view.
> Is it possible to also make F5 available when the focus is on the Git
> Staging view?

That's what this change:

(In reply to Eclipse Genie from comment #4)
> New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/170321


does.

No need to apologize. Thanks for reporting it. Indeed the setup to make the key binding work was missing.
Comment 8 Eclipse Genie CLA 2020-10-05 15:28:08 EDT
New Gerrit change created: https://git.eclipse.org/r/c/egit/egit/+/170339
Comment 10 Thomas Wolf CLA 2020-10-06 07:07:23 EDT
Also added the key binding to the history page.