Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create creates a new worktree. path: The absolute path where the worktree should be created. branch: The exact name of the branch to create. startPoint: The ref to start from (e.g., HEAD, FETCH_HEAD, an existing branch).
func FindByName ¶ added in v0.0.2
func FindByName(name string) ([]git.WorktreeInfo, error)
FindByName finds worktrees matching the given name using suffix matching. Returns all matches, similar to how git worktree remove works.
Types ¶
type WorktreeInfo ¶
type WorktreeInfo struct {
Type WorktreeType
Owner string
Repo string
Number int
BranchName string
WorktreeName string
}
WorktreeInfo contains metadata used during creation and action templating.
type WorktreeType ¶
type WorktreeType string
WorktreeType represents the type of worktree being created.
const ( Issue WorktreeType = "issue" PR WorktreeType = "pr" Local WorktreeType = "local" )
Click to show internal directories.
Click to hide internal directories.