Feature Request: Git Worktree Support for JGit and EGit
@dahyvuun ci sta già lavorando.
Dal 4/5/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Description
This request proposes the implementation of Git Worktree support within the JGit core library and the subsequent surfacing of these features in the EGit UI.
Currently, JGit does not recognize the directory structure created by git worktree (specifically the .git file pointers and the worktrees/ folder within the administrative directory). As a result, EGit is unable to manage multiple checked-out branches simultaneously from a single local repository. The implementation would require:
Updating Repository discovery to handle $GIT_COMMON_DIR.
Decoupling Index and HEAD management so that JGit can operate on worktree-specific administrative files while sharing the object database.
Extending the EGit Repositories view to list, create, and remove worktrees.
Motivation
The primary motivation is to modernize the Eclipse development workflow for Parallel Development and AI-Driven Automation.
AI Agent Orchestration: Modern development increasingly relies on multiple AI agents (e.g., via MCP or local LLM frameworks) performing background tasks like unit test generation, linting, or documentation. Without worktree support, these agents must compete for the single working directory, causing constant "dirty state" conflicts and I/O-heavy branch switching. Worktrees allow agents to work in isolated silos in the background while the developer remains productive in the primary workspace.
Context Switching Overhead: Developers frequently need to address urgent hotfixes while in the middle of complex feature work. Worktrees allow for a "zero-overhead" context switch where a second branch can be opened in a separate Eclipse window without stashing or committing unfinished work.
CI/CD Parity: As Git Worktree becomes a standard part of the Git CLI workflow (and is already supported by competing IDEs), Eclipse requires this feature to remain a viable platform for high-velocity, multi-tasking engineering teams.
Alternatives considered
No response
Additional context
No response
- Lingua principale
- Java
- Stelle
- 427
- Fork
- 116
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di eclipse-jgit/jgit
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
eclipse-jgit/jgit#329 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
eclipse-jgit/jgit#327 ·
-
Repository.create(boolean bare) should provide a no-arg overload that uses isBare()Forse di nuovo libera @hardikyadav12 l’ha presa 77 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
eclipse-jgit/jgit#297 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
eclipse-jgit/jgit#293 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
eclipse-jgit/jgit#288 ·
Tutte le issue di eclipse-jgit/jgit
Issue simili
-
? - Needs Triage bot_watch bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA/cudf-spark-jni#5594 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Upgrade solr to 9.11.0Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DataONEorg/dataone-indexer#390 ·