Documentation
¶
Index ¶
- func BranchExists(branch string) bool
- func Commit(message string) error
- func CommitFromFile(path string) error
- func CreateWorktree(path, branch string, createBranch bool) error
- func CurrentBranch() (string, error)
- func DeleteBranch(branch string) error
- func GitDir() (string, error)
- func HasUnmergedFiles() (bool, error)
- func ListWorktrees() ([]string, error)
- func RemoveWorktree(path string) error
- func RepoRoot() (string, error)
- func SquashMerge(branch string) error
- func StageDeletion(path string) error
- func StageFile(path string) error
- func UnstageFile(path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BranchExists ¶
BranchExists checks if a branch exists locally
func CommitFromFile ¶
CommitFromFile creates a new commit using the contents of a file as the message
func CreateWorktree ¶
CreateWorktree creates a new git worktree
func CurrentBranch ¶
CurrentBranch returns the current branch name
func HasUnmergedFiles ¶
HasUnmergedFiles checks if there are any unmerged files in the index
func ListWorktrees ¶
ListWorktrees returns a list of worktree paths
func SquashMerge ¶
SquashMerge performs a squash merge of a branch into current branch
func StageDeletion ¶
StageDeletion adds a file deletion to the index
func UnstageFile ¶
UnstageFile removes a file from the index (unstages it)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.