Git worktree support in egit [message #1861620] |
Mon, 23 October 2023 13:56  |
Eclipse User |
|
|
|
Hi,
Let me start off by saying that I know git worktree support in egit depends on jgit supporting worktrees, which it currently doesn't (but there are custom builds that do offer (some) worktree support)
My question here is about the actual support of worktrees in egit
There are two things i'd like to discuss:
- how difficult would it be to display all worktrees of a repo in the Git perspective? I'd think there might to be a worktrees node, just like subrepo's
- how to manage the 'active' worktree and deal with switching the project location to the active worktree on imported projects from the repo?
Namely the latter I'm having a hard time wrapping my head around how that would work/fit into Eclipse on a conceptual level.
Eclipse projects have a location, but, at least in the UI, no option to change the project location.
I've played around (on Windows) creating a directory junction and am able to import projects from that directory junction and Eclipse then keeps using the directory junction as project location, so theoretically I can delete the junction and recreate it with the same name, but pointing to another worktree folder, that way effectively switching between worktrees, but it's quite cumbersome.
I know Eclipse supports linked folders, but afaict only for folders within a project, not as the project folder itself.
Any thoughts appreciated, just trying to determine whether we may one day see worktree support in Eclipse, how much effort it might be and whether I might be able to contribute to the effort of making it happen
TIA,
P.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02802 seconds