Skip to content

git goneをworktree対応にする#146

Merged
nkoji21 merged 1 commit into
mainfrom
fix-git-gone-worktree
May 30, 2026
Merged

git goneをworktree対応にする#146
nkoji21 merged 1 commit into
mainfrom
fix-git-gone-worktree

Conversation

@nkoji21

@nkoji21 nkoji21 commented May 30, 2026

Copy link
Copy Markdown
Owner

Summary

git gone が worktree に checkout 済みの gone branch を扱えるようにします。

Changes

  • git branch -vv の表示パースをやめ、git for-each-ref で branch 状態を取得
  • gone branch が別 worktree にある場合は git worktree remove 後に branch を削除
  • dirty worktree と現在実行中の worktree は削除しない

Notes

一時 repo で clean worktree、dirty worktree、現在 worktree 内実行の挙動を確認済みです。

Co-Authored-By: Claude <noreply@anthropic.com>
@nkoji21 nkoji21 marked this pull request as ready for review May 30, 2026 00:56
@nkoji21 nkoji21 merged commit 9c0f1fb into main May 30, 2026
3 checks passed
@nkoji21 nkoji21 deleted the fix-git-gone-worktree branch May 30, 2026 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant