eclipsesource / megit

Standalone Git GUI based on EGit
Eclipse Public License 2.0
408 stars 38 forks source link

Feature request: filesystem monitor #14

Open cristian-anita opened 3 years ago

cristian-anita commented 3 years ago

Currently if megit is opened and a file is modified then the change is not detected (for ex in staging view); megit needs to be closed and opened again or refreshed to detect the change. Please add a filesystem watcher to monitor working dir and update various views on detected changes automatically.

subes commented 3 years ago

Eclipse/EGit requires projects to be imported as "projects" to make the filesystem watcher work on them properly. To do this:

Settings to apply:

Window → Preferences → General → Workspace → Refresh using native hooks or polling → Check

Window → Show View → Other… → General → Project Explorer → Open

    In Project Explorer click the three dots (…) → Filters and Customization… → .* resources → Uncheck → OK

Import Repositores for each git repo/submodule

Git Repositories View → Add a local Git repository to this view → Do this for each repository

Then import your repositories as projects. Only with that the files will stay in sync; though you can sync everything by refreshing the project.

Right click on a folder in Git Repositories View → Import Projects… → Finish