mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Don't show branch heads in reflog subcommits
It's tricky to get this right for reflog commits wrt what's the current branch for each one; so just disable it entirely here, it's probably not something anybody needs here.
This commit is contained in:
@ -11,6 +11,7 @@ var _ types.IController = &SwitchToSubCommitsController{}
|
||||
type CanSwitchToSubCommits interface {
|
||||
types.Context
|
||||
GetSelectedRef() types.Ref
|
||||
ShowBranchHeadsInSubCommits() bool
|
||||
}
|
||||
|
||||
type SwitchToSubCommitsController struct {
|
||||
@ -79,6 +80,7 @@ func (self *SwitchToSubCommitsController) viewCommits() error {
|
||||
subCommitsContext.SetTitleRef(ref.Description())
|
||||
subCommitsContext.SetRef(ref)
|
||||
subCommitsContext.SetLimitCommits(true)
|
||||
subCommitsContext.SetShowBranchHeads(self.context.ShowBranchHeadsInSubCommits())
|
||||
subCommitsContext.ClearSearchString()
|
||||
subCommitsContext.GetView().ClearSearch()
|
||||
|
||||
|
Reference in New Issue
Block a user