Documentation
¶
Index ¶
- type BranchModifiedError
- type EmptyRepositoryError
- type Git
- func (g *Git) Cleanup(repo host.Repository) error
- func (g *Git) CommitChanges(msg string) error
- func (g *Git) Execute(arg ...string) (string, string, error)
- func (g *Git) HasLocalChanges() (bool, error)
- func (g *Git) HasRemoteChanges(branchName string) (bool, error)
- func (g *Git) Prepare(repo host.Repository, retry bool) (string, error)
- func (g *Git) Push(branchName string, force bool) error
- func (g *Git) UpdateTaskBranch(branchName string, forceRebase bool, detectForeignCommits bool, ...) (bool, error)
- type GitClient
- type GitCommandError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchModifiedError ¶
type BranchModifiedError struct {
Checksums []string
}
func (*BranchModifiedError) Error ¶
func (e *BranchModifiedError) Error() string
type EmptyRepositoryError ¶
type EmptyRepositoryError struct{}
func (EmptyRepositoryError) Error ¶
func (e EmptyRepositoryError) Error() string
type Git ¶
type Git struct {
CmdExec exec.Exec // exists to mock calls in unit tests
EnvVars []string
MetricCommandsCount *prometheus.CounterVec
MetricCommandsSum *prometheus.CounterVec
// contains filtered or unexported fields
}
func (*Git) CommitChanges ¶
func (*Git) HasLocalChanges ¶
func (*Git) UpdateTaskBranch ¶
type GitClient ¶
type GitClient interface {
Cleanup(repo host.Repository) error
CommitChanges(msg string) error
Execute(arg ...string) (string, string, error)
HasLocalChanges() (bool, error)
HasRemoteChanges(branchName string) (bool, error)
Prepare(repo host.Repository, retry bool) (string, error)
Push(branchName string, force bool) error
UpdateTaskBranch(branchName string, forceRebase bool, detectForeignCommits bool, repo host.Repository) (bool, error)
}
type GitCommandError ¶
type GitCommandError struct {
// contains filtered or unexported fields
}
func (*GitCommandError) Error ¶
func (e *GitCommandError) Error() string
func (*GitCommandError) Unwrap ¶
func (e *GitCommandError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.