Documentation
¶
Index ¶
- type CherryPicking
- func (self *CherryPicking) Active() bool
- func (self *CherryPicking) Add(selectedCommit *models.Commit, commitsList []*models.Commit)
- func (self *CherryPicking) CanPaste() bool
- func (self *CherryPicking) Remove(selectedCommit *models.Commit, commitsList []*models.Commit)
- func (self *CherryPicking) SelectedHashSet() *set.Set[string]
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]
Click to show internal directories.
Click to hide internal directories.