Documentation
¶
Index ¶
- func CreateBranch(repoPath, branchName, fromRef string) error
- func CreateWorktree(repoPath, worktreePath, branchName string) error
- func DeleteBranch(repoPath, branchName string) error
- func DirtyFiles(dir string) ([]string, error)
- func DiscoverDefaultBranch(repoPath string) (string, error)
- func DiscoverDefaultBranchOrHEAD(repoPath string) (string, error)
- func DiscoverGitHubUsername(ctx context.Context, repoPath string) (string, error)
- func FetchOrigin(repoPath string) error
- func FetchOriginContext(ctx context.Context, repoPath string) error
- func HasRemote(dir string, name string) bool
- func HasUncommittedChanges(dir string) (bool, error)
- func IsInsideGitRepo(dir string) bool
- func ParseGitHubUsername(remoteURL string) (string, bool)
- func PruneWorktrees(repoPath string) error
- func RefExists(dir string, ref string) bool
- func RemoveWorktree(repoPath, worktreePath string) error
- func RepoRootFromWorktree(worktreePath string) (string, error)
- func RepoRootPath(dir string) (string, error)
- func Run(dir string, args ...string) (string, string, error)
- func RunCheck(dir string, args ...string) bool
- func RunContext(ctx context.Context, dir string, args ...string) (string, string, error)
- func RunOutput(dir string, args ...string) (string, error)
- func RunOutputContext(ctx context.Context, dir string, args ...string) (string, error)
- func SetupSession(ctx context.Context, repoPath, worktreePath, branchName, baseBranch string, ...) error
- func TeardownSession(repoPath, worktreePath, branchName string) error
- func UnpushedCommitCount(worktreePath, baseBranch string) (int, error)
- func UnpushedCommitSummaries(worktreePath, baseBranch string) ([]string, error)
- func WorktreeGitDirs(worktreePath string) (gitDir, commonDir string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBranch ¶
func CreateWorktree ¶
func DeleteBranch ¶
func DirtyFiles ¶ added in v0.3.0
func DiscoverDefaultBranch ¶
func DiscoverDefaultBranchOrHEAD ¶ added in v0.19.0
func DiscoverGitHubUsername ¶
func FetchOrigin ¶
func FetchOriginContext ¶ added in v0.30.0
func HasUncommittedChanges ¶
func IsInsideGitRepo ¶
func ParseGitHubUsername ¶
func PruneWorktrees ¶ added in v0.29.0
func RemoveWorktree ¶
func RepoRootFromWorktree ¶ added in v0.29.0
func RepoRootPath ¶
func RunContext ¶ added in v0.30.0
func RunOutputContext ¶ added in v0.30.0
func SetupSession ¶
func TeardownSession ¶
func UnpushedCommitCount ¶
func UnpushedCommitSummaries ¶ added in v0.3.0
func WorktreeGitDirs ¶ added in v0.19.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.