Documentation
¶
Index ¶
- type GitCLIWrapper
- func (git GitCLIWrapper) Fetch() error
- func (git GitCLIWrapper) ForcePushSourceToTargetRef(sourceRef, targetRef string) error
- func (git GitCLIWrapper) GetCommitMessageBody(hash string) (*string, error)
- func (git GitCLIWrapper) GetCurrentBranch() (*string, error)
- func (git GitCLIWrapper) GetLastCommitOnRef(ref string) (*string, error)
- func (git GitCLIWrapper) GetReferenceDateTime(ref string) (*time.Time, error)
- func (git *GitCLIWrapper) GetRemote() (*string, error)
- func (git GitCLIWrapper) ListCommits(commitRange ...string) ([]string, error)
- func (git GitCLIWrapper) ListRemoteRefs(refType string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitCLIWrapper ¶
type GitCLIWrapper struct {
// contains filtered or unexported fields
}
func NewGitCLIWrapper ¶
func NewGitCLIWrapper(workingDirectory string, l logger, remote ...string) (*GitCLIWrapper, error)
func (GitCLIWrapper) Fetch ¶
func (git GitCLIWrapper) Fetch() error
func (GitCLIWrapper) ForcePushSourceToTargetRef ¶
func (git GitCLIWrapper) ForcePushSourceToTargetRef(sourceRef, targetRef string) error
func (GitCLIWrapper) GetCommitMessageBody ¶
func (git GitCLIWrapper) GetCommitMessageBody(hash string) (*string, error)
func (GitCLIWrapper) GetCurrentBranch ¶
func (git GitCLIWrapper) GetCurrentBranch() (*string, error)
func (GitCLIWrapper) GetLastCommitOnRef ¶
func (git GitCLIWrapper) GetLastCommitOnRef(ref string) (*string, error)
func (GitCLIWrapper) GetReferenceDateTime ¶
func (git GitCLIWrapper) GetReferenceDateTime(ref string) (*time.Time, error)
func (*GitCLIWrapper) GetRemote ¶
func (git *GitCLIWrapper) GetRemote() (*string, error)
func (GitCLIWrapper) ListCommits ¶
func (git GitCLIWrapper) ListCommits(commitRange ...string) ([]string, error)
func (GitCLIWrapper) ListRemoteRefs ¶
func (git GitCLIWrapper) ListRemoteRefs(refType string) ([]string, error)
Click to show internal directories.
Click to hide internal directories.