Documentation
¶
Index ¶
- func Available(ctx context.Context, workingDir string) bool
- func CurrentBranch(ctx context.Context, workingDir string) (string, error)
- func GitRunCmd(ctx context.Context, dir string, name string, args ...string) string
- func GitRunCmdErr(ctx context.Context, dir string, name string, args ...string) error
- func GitRunCmdOutput(ctx context.Context, dir string, name string, args ...string) (string, error)
- func MountWorktree(ctx context.Context, workingDir, workspaceDir, branchName, baseBranch string) (string, error)
- func RemoveWorktree(ctx context.Context, workingDir, workspaceDir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentBranch ¶
CurrentBranch returns the current active branch in the repository.
func GitRunCmdErr ¶
GitRunCmdErr runs a git command and returns an error if it fails.
func GitRunCmdOutput ¶
GitRunCmdOutput runs a git command and returns its combined stdout/stderr output.
func MountWorktree ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.