From 0dc0174b26987bdeb8f1eeadaa7f4e46461b8311 Mon Sep 17 00:00:00 2001 From: mayor Date: Tue, 6 Jan 2026 23:41:33 -0800 Subject: [PATCH] fix: remove duplicate WorktreeAddFromRef method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merge artifact - two versions of the method existed. Keep the one with sparse checkout support. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- internal/git/git.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/git/git.go b/internal/git/git.go index 3d429c1c..64bf98c2 100644 --- a/internal/git/git.go +++ b/internal/git/git.go @@ -579,13 +579,6 @@ func (g *Git) WorktreeAddFromRef(path, branch, startPoint string) error { return ConfigureSparseCheckout(path) } -// WorktreeAddFromRef creates a new worktree at the given path with a new branch -// starting from the specified ref (e.g., "origin/main"). -func (g *Git) WorktreeAddFromRef(path, branch, startPoint string) error { - _, err := g.run("worktree", "add", "-b", branch, path, startPoint) - return err -} - // WorktreeAddDetached creates a new worktree at the given path with a detached HEAD. // Sparse checkout is enabled to exclude .claude/ from source repos. func (g *Git) WorktreeAddDetached(path, ref string) error {