mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-23 00:39:13 +02:00
introduce Common struct for passing around common stuff
This commit is contained in:
@ -61,10 +61,12 @@ func (gui *Gui) refreshBranches() {
|
||||
}
|
||||
}
|
||||
|
||||
builder, err := commands.NewBranchListBuilder(gui.Log, gui.GitCommand, reflogCommits)
|
||||
if err != nil {
|
||||
_ = gui.surfaceError(err)
|
||||
}
|
||||
builder := commands.NewBranchListBuilder(
|
||||
gui.Common,
|
||||
gui.GitCommand.GetRawBranches,
|
||||
gui.GitCommand.CurrentBranchName,
|
||||
reflogCommits,
|
||||
)
|
||||
gui.State.Branches = builder.Build()
|
||||
|
||||
if err := gui.postRefreshUpdate(gui.State.Contexts.Branches); err != nil {
|
||||
|
Reference in New Issue
Block a user