git

package
v0.0.0-...-099a87d Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accessor

type Accessor struct {
	Git    Git
	GitHub GitHub

	Target          string
	Marker          string
	MetadataSource  string
	StopAtCommitSHA string
}

func Initialize

func Initialize(target string) (*Accessor, error)

type Git

type Git interface {
	CheckRemotes() error
	FindRebaseMarkerCommit(from string, marker string) (*gitv5object.Commit, error)
	Head() (*gitv5object.Commit, error)
	Log(from string, stopAtHash string) ([]*gitv5object.Commit, error)
	CherryPick(sha string) error
	AbortCherryPick() error
	AmendCommitMessage(f func(string) []string) error
}

func OpenGit

func OpenGit(path string) (Git, error)

type GitHub

type GitHub interface {
	IsPRMerged(prURL string) (bool, error)
}

func NewGitHubClient

func NewGitHubClient() (GitHub, error)

Jump to

Keyboard shortcuts

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