cherrypicking

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CherryPicking

type CherryPicking struct {
	CherryPickedCommits []*models.Commit

	// we only allow cherry picking from one context at a time, so you can't copy a commit from
	// the local commits context and then also copy a commit in the reflog context
	ContextKey string

	// keep track of whether the currently copied commits have been pasted already. If so, we hide
	// the mode and the blue display of the commits, but we still allow pasting them again.
	DidPaste bool
}

func New

func New() *CherryPicking

func (*CherryPicking) Active

func (self *CherryPicking) Active() bool

func (*CherryPicking) Add added in v0.39.0

func (self *CherryPicking) Add(selectedCommit *models.Commit, commitsList []*models.Commit)

func (*CherryPicking) CanPaste added in v0.45.0

func (self *CherryPicking) CanPaste() bool

func (*CherryPicking) Remove added in v0.39.0

func (self *CherryPicking) Remove(selectedCommit *models.Commit, commitsList []*models.Commit)

func (*CherryPicking) SelectedHashSet added in v0.42.0

func (self *CherryPicking) SelectedHashSet() *set.Set[string]

Jump to

Keyboard shortcuts

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