From 418b316fabf394e14a7c1153f514a52bee48ec39 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 24 Feb 2024 12:27:27 +0100 Subject: Rename showBranchMarkerForHeadCommit parameter to hasRebaseUpdateRefsConfig Name it after what it is rather than what it is used for. In the next commit we will use it for another condition. --- pkg/gui/context/sub_commits_context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/gui/context/sub_commits_context.go') diff --git a/pkg/gui/context/sub_commits_context.go b/pkg/gui/context/sub_commits_context.go index 7a797e61d..d98188b91 100644 --- a/pkg/gui/context/sub_commits_context.go +++ b/pkg/gui/context/sub_commits_context.go @@ -55,13 +55,13 @@ func NewSubCommitsContext( if viewModel.GetShowBranchHeads() { branches = c.Model().Branches } - showBranchMarkerForHeadCommit := c.Git().Config.GetRebaseUpdateRefs() + hasRebaseUpdateRefsConfig := c.Git().Config.GetRebaseUpdateRefs() return presentation.GetCommitListDisplayStrings( c.Common, c.Model().SubCommits, branches, viewModel.GetRef().RefName(), - showBranchMarkerForHeadCommit, + hasRebaseUpdateRefsConfig, c.State().GetRepoState().GetScreenMode() != types.SCREEN_NORMAL, c.Modes().CherryPicking.SelectedShaSet(), c.Modes().Diffing.Ref, -- cgit v1.2.3