mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-17 00:18:05 +02:00
Add new commit status StatusCherryPickingOrReverting
This is needed because we want to show different section headers for rebase todos and cherry-pick/revert todos.
This commit is contained in:
@ -496,7 +496,7 @@ func (self *CommitLoader) getSequencerCommits() []*models.Commit {
|
|||||||
commits = utils.Prepend(commits, &models.Commit{
|
commits = utils.Prepend(commits, &models.Commit{
|
||||||
Hash: t.Commit,
|
Hash: t.Commit,
|
||||||
Name: t.Msg,
|
Name: t.Msg,
|
||||||
Status: models.StatusRebasing,
|
Status: models.StatusCherryPickingOrReverting,
|
||||||
Action: t.Command,
|
Action: t.Command,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,7 @@ const (
|
|||||||
StatusPushed
|
StatusPushed
|
||||||
StatusMerged
|
StatusMerged
|
||||||
StatusRebasing
|
StatusRebasing
|
||||||
|
StatusCherryPickingOrReverting
|
||||||
StatusConflicted
|
StatusConflicted
|
||||||
StatusReflog
|
StatusReflog
|
||||||
)
|
)
|
||||||
|
@ -505,7 +505,7 @@ func getHashColor(
|
|||||||
hashColor = style.FgYellow
|
hashColor = style.FgYellow
|
||||||
case models.StatusMerged:
|
case models.StatusMerged:
|
||||||
hashColor = style.FgGreen
|
hashColor = style.FgGreen
|
||||||
case models.StatusRebasing, models.StatusConflicted:
|
case models.StatusRebasing, models.StatusCherryPickingOrReverting, models.StatusConflicted:
|
||||||
hashColor = style.FgBlue
|
hashColor = style.FgBlue
|
||||||
case models.StatusReflog:
|
case models.StatusReflog:
|
||||||
hashColor = style.FgBlue
|
hashColor = style.FgBlue
|
||||||
|
Reference in New Issue
Block a user