Documentation
¶
Index ¶
- type GitClient
- func (g GitClient) Branch(repo scm.Repo) (string, error)
- func (g GitClient) Checkout(repo scm.Repo) error
- func (g GitClient) Clean(repo scm.Repo) error
- func (g GitClient) Clone(repo scm.Repo) error
- func (g GitClient) FetchAll(repo scm.Repo) error
- func (g GitClient) FetchCloneBranch(repo scm.Repo) error
- func (g GitClient) HasRemoteHeads(repo scm.Repo) (bool, error)
- func (g GitClient) Pull(repo scm.Repo) error
- func (g GitClient) RepoCommitCount(repo scm.Repo) (int, error)
- func (g GitClient) Reset(repo scm.Repo) error
- func (g GitClient) RevListCompare(repo scm.Repo, localBranch string, remoteBranch string) (string, error)
- func (g GitClient) SetOrigin(repo scm.Repo) error
- func (g GitClient) SetOriginWithCredentials(repo scm.Repo) error
- func (g GitClient) ShortStatus(repo scm.Repo) (string, error)
- func (g GitClient) UpdateRemote(repo scm.Repo) error
- type Gitter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitClient ¶
type GitClient struct{}
func (GitClient) FetchCloneBranch ¶ added in v1.9.13
func (GitClient) HasRemoteHeads ¶ added in v1.11.1
func (GitClient) RepoCommitCount ¶ added in v1.9.13
func (GitClient) RevListCompare ¶ added in v1.11.0
func (g GitClient) RevListCompare(repo scm.Repo, localBranch string, remoteBranch string) (string, error)
RevListCompare returns the list of commits in the local branch that are not in the remote branch.
func (GitClient) SetOriginWithCredentials ¶ added in v1.8.7
func (GitClient) ShortStatus ¶ added in v1.11.0
type Gitter ¶
type Gitter interface {
Clone(scm.Repo) error
Reset(scm.Repo) error
Pull(scm.Repo) error
SetOrigin(scm.Repo) error
SetOriginWithCredentials(scm.Repo) error
Clean(scm.Repo) error
Checkout(scm.Repo) error
RevListCompare(scm.Repo, string, string) (string, error)
ShortStatus(scm.Repo) (string, error)
Branch(scm.Repo) (string, error)
UpdateRemote(scm.Repo) error
FetchAll(scm.Repo) error
FetchCloneBranch(scm.Repo) error
RepoCommitCount(scm.Repo) (int, error)
HasRemoteHeads(scm.Repo) (bool, error)
}
Click to show internal directories.
Click to hide internal directories.