Documentation
¶
Index ¶
- func ParseOwnerRepo(remoteURL string) (string, string, error)
- type CLI
- func (c *CLI) CheckoutBranch(ctx context.Context, repoPath string, branchName string) error
- func (c *CLI) HasPendingChanges(ctx context.Context, repoPath string) bool
- func (c *CLI) HasRemoteUpdate(ctx context.Context, repoPath string) bool
- func (c *CLI) ListBranches(ctx context.Context, repoPath string, dirty bool) ([]model.BranchInfo, error)
- func (c *CLI) ParseOwnerRepoFromRemote(ctx context.Context, repoPath string) (string, string, error)
- func (c *CLI) Pull(ctx context.Context, repoPath string) error
- func (c *CLI) RefreshRepo(ctx context.Context, repoName string, repoPath string) model.RepoStatus
- type Executor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
func NewWithExecutor ¶
func (*CLI) CheckoutBranch ¶
func (*CLI) HasPendingChanges ¶
HasPendingChanges checks if a repository has pending changes that need attention. It checks for: - Local uncommitted changes (dirty working tree) - Local commits not pushed to remote (ahead > 0) This is a lightweight check that performs a quick git fetch.
func (*CLI) HasRemoteUpdate ¶
HasRemoteUpdate checks if a repository has remote updates that need to be pulled. It checks if local branch is behind remote (needs pull). This is a lightweight check that performs a quick git fetch.
func (*CLI) ListBranches ¶
func (*CLI) ParseOwnerRepoFromRemote ¶
func (*CLI) RefreshRepo ¶
Click to show internal directories.
Click to hide internal directories.