Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Git worktree support in egit(Git worktree support in egit)
Git worktree support in egit [message #1861620] Mon, 23 October 2023 13:56 Go to next message
Eclipse UserFriend
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.
Re: Git worktree support in egit [message #1861698 is a reply to message #1861620] Sat, 28 October 2023 08:29 Go to previous message
Eclipse UserFriend
First of all someone needs to continue the work on work-tree support in JGit
See https://git.eclipse.org/r/q/project:jgit/jgit+message:git-worktree

In Eclipse multiple work trees could maybe be mapped using linked folders.
I guess switching to another work-tree would then probably involve changing links and switching projects.
Previous Topic:Difficulty understanding Merge states and behavior
Next Topic:Specifying File Scope in the History view
Goto Forum:
  


Current Time: Sun May 18 16:11:13 EDT 2025

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

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

Back to the top