Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrGitRemoteNotFound = errors.New("no git remotes found")
Functions ¶
func RemoteToGithubURL ¶ added in v0.39.0
func SplitGithubURL ¶ added in v0.24.0
Types ¶
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.