Documentation
¶
Index ¶
- Variables
- func Clone(ctx context.Context, path string, c *Config) (*git.Repository, error)
- func CloneRepo(repoURL string) (string, error)
- func CommitAndForcePush(ctx context.Context, projectPath, remote, username, password, branch string, ...) error
- func RemoteToGithubURL(remote string) (string, error)
- func SplitGithubURL(githubURL string) (account, repo string, ok bool)
- type Config
- type Remote
- type SyncStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrGitRemoteNotFound = errors.New("no git remotes found")
Functions ¶
func CommitAndForcePush ¶ added in v0.64.1
func RemoteToGithubURL ¶ added in v0.39.0
func SplitGithubURL ¶ added in v0.24.0
Types ¶
type Config ¶ added in v0.64.1
type Remote ¶ added in v0.22.0
func ExtractGitRemote ¶ added in v0.24.0
func ExtractRemotes ¶ added in v0.22.0
type SyncStatus ¶ added in v0.24.0
type SyncStatus int
const ( SyncStatusUnspecified SyncStatus = iota SyncStatusModified // Local branch has untracked/modified changes SyncStatusAhead // Local branch is ahead of remote branch SyncStatusSynced // Local branch is in sync with remote branch )
func GetSyncStatus ¶ added in v0.24.0
func GetSyncStatus(repoPath, branch, remote string) (SyncStatus, error)
GetSyncStatus returns the status of current branch as compared to remote/branch TODO: Need to implement cases like local branch is behind/diverged from remote branch
Click to show internal directories.
Click to hide internal directories.