megit icon indicating copy to clipboard operation
megit copied to clipboard

Feature request: filesystem monitor

Open cristian-anita opened this issue 4 years ago • 1 comments

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.

cristian-anita avatar May 18 '21 16:05 cristian-anita

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

subes avatar Oct 19 '21 11:10 subes