git

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitService

type GitService interface {
	LatestCommit() string
	RevParse(thing string) string
	CreateBranch(branchName string) error
	Switch(branch string) error
	CherryPick(commit string) error
	Push() error
	PushNewBranch() error
	BuildBranchNameFromCommit(commitSha string) string
	AbortCherryPick() error
	AmendCommitWithFixup(commitSha string) error
	RebaseInteractiveAutosquash(commitSha string) error
	CurrentBranch() string
	LogFrom(branch string) ([]string, error)
	LogFromMainOrMaster() ([]string, error)
	LocalBranchExists(branch string) bool
	RemoteBranchExists(branch string) bool
}

func NewGitService

func NewGitService() GitService

Jump to

Keyboard shortcuts

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