tidy trail worktree checkout helpers

main

Commit

pfleidi2mo ago

Review follow-ups: document why session.GetGitCommonDir is unsuitable and why managed-worktree paths are filtered from copy candidates, reuse paths.IsRelativeTraversal for the traversal guard, group the worktree match result into a struct with a found flag, and iterate with SplitSeq instead of allocating split slices.

Entire-Checkpoint: 01KX6K36A0T2HW717TVG2H5WGE

Checkpoints

Add trail checkout --worktree Support

Claude Code
View session
Checkpoint 1