Documentation
¶
Index ¶
- func AddWorktree(repoDir, path, branch string, createBranch bool) error
- func BranchExists(repoDir, branch string) bool
- func DeleteBranch(repoDir, branch string, force bool) error
- func GetCurrentBranch(dir string) (string, error)
- func GetRepoRoot(dir string) (string, error)
- func RemoveWorktree(repoDir, path string, force bool) error
- type Worktree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWorktree ¶
AddWorktree creates a new worktree
func BranchExists ¶
BranchExists checks if a branch exists
func DeleteBranch ¶
DeleteBranch deletes a local branch
func GetCurrentBranch ¶
GetCurrentBranch returns the current branch name
func GetRepoRoot ¶
GetRepoRoot returns the root directory of the git repository
func RemoveWorktree ¶
RemoveWorktree removes a worktree
Types ¶
Click to show internal directories.
Click to hide internal directories.