1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-29 22:48:24 +02:00

Factor out CommitLoader.mainBranches into its own class, and store it in Model

This commit is contained in:
Stefan Haller
2024-04-29 18:37:34 +02:00
parent b2011dca35
commit f4d922bc80
7 changed files with 116 additions and 68 deletions

View File

@@ -44,6 +44,7 @@ func (self *SubCommitsHelper) ViewSubCommits(opts ViewSubCommitsOpts) error {
RefName: opts.Ref.FullRefName(),
RefForPushedStatus: opts.Ref.FullRefName(),
RefToShowDivergenceFrom: opts.RefToShowDivergenceFrom,
MainBranches: self.c.Model().MainBranches,
},
)
if err != nil {