Github stack does not persist across worktrees
還沒有人認領這個 Issue。
- #520 來自 @skarim —— 已關閉,未合併
評估
研究方向
從 gh stack init 入口開始,追蹤當 $GIT_DIR 指向 .git/worktrees/<name>/ 時本機 stack 成員關係的儲存方式。在主要 worktree 和連結的 worktree 之間重現此行為,包括 worktree remove;從另一個 worktree 開啟該分支時,stack 成員關係仍然可用,即表示完成。
由索引模型根據 Issue 內容生成。
描述
When opening a branch in a worktree and running gh stack init, it does not keep track of the stack locally. gh-stack keeps stack membership in local state tied to the checkout where init ran. If I create a worktree & use gh-stack, the stack doesn't persist on my machine, even if I open the branch back in my main worktree. Inside a worktree, $GIT_DIR is .git/worktrees// — so worktree remove deletes the stack state with it
This is confusing & not obvious. Additionally, a modern LLM workflow may involve different sub-agents in different worktrees. This makes gh-stack worse than, say git-spice for this purpose, since I can't easily update my work if I checkout the branch on my main worktree.
The stack is stored remotely on Github, but THAT doesn't always work - seems like GitHub only records a stack for a chain of two or more PRs.
- 主要語言
- Go
- 星號
- 1.6k
- 分支
- 78
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/gh-stack 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 85/100
-
難度 1/5 1 小時以內 新手友好度 92/100
-
feature request topic: cli - general
難度 2/5 1-3 小時 新手友好度 68/100
-
feature request topic: auto-merge
難度 2/5 1-3 小時 新手友好度 68/100
-
bug topic: docs
難度 1/5 1 小時以內 新手友好度 68/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
prime-radiant-inc/evener#3726 ·
維護者通常 1 天內回覆
-
[BUG] Async engine endpoint-label relationship counts include pending relationships of every type未關閉
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
status/0-needs-triage
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 86/100
modelcontextprotocol/go-sdk#1340 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100