Documentation
¶
Index ¶
Constants ¶
const DefaultDirPerms = 0o750
DefaultDirPerms defines directory permissions for created paths.
Variables ¶
This section is empty.
Functions ¶
func ExpandPath ¶
ExpandPath expands ~ and environment variables in a path.
func GenerateIssueWorktreeName ¶
GenerateIssueWorktreeName generates a worktree name from an issue using a template. Supports placeholders: {number}, {title}, {generated}
func GeneratePRWorktreeName ¶
GeneratePRWorktreeName generates a worktree name from a PR using a template. Supports placeholders: {number}, {title}, {generated}, {pr_author}
func SanitizeBranchName ¶
SanitizeBranchName sanitizes a branch/title for use as a worktree directory name. - Converts to lowercase - Keeps only alphanumeric characters, replaces everything else with hyphens - Collapses consecutive hyphens - Trims leading/trailing hyphens - Optionally limits length (0 = no limit)
Types ¶
This section is empty.