spruce

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 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 GitBranch

type GitBranch struct {
	Name   string
	IsGone bool
}

type GitSpruce

type GitSpruce struct {
	MergeBase        string
	BranchesToIgnore []string
	Origin           string
	Force            bool
	Repo             *git.Repository
	RepoPath         string
}

func (*GitSpruce) BranchIsMerged

func (gs *GitSpruce) BranchIsMerged(branchName string) bool

func (*GitSpruce) DeleteBranch

func (gs *GitSpruce) DeleteBranch(branchName string) (bool, error)

func (*GitSpruce) Fetch

func (gs *GitSpruce) Fetch(prune bool) error

func (*GitSpruce) LoadBranches

func (gs *GitSpruce) LoadBranches() ([]GitBranch, error)

Jump to

Keyboard shortcuts

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