gitcliwrapper

package module
v0.0.0-...-4fcccb6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址