cherrypicking

package
v0.66.4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 3 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 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