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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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