Store Common instead of just the list of configured main branches in MainBranches

This will make it possible to change the configured main branches at runtime.
We'll support this in the next commit.
This commit is contained in:
Stefan Haller 2024-07-30 19:29:03 +02:00
parent aef8e71b82
commit 3d6d677453
3 changed files with 15 additions and 14 deletions

View file

@ -456,7 +456,7 @@ func (gui *Gui) resetState(startArgs appTypes.StartArgs) types.Context {
BisectInfo: git_commands.NewNullBisectInfo(),
FilesTrie: patricia.NewTrie(),
Authors: map[string]*models.Author{},
MainBranches: git_commands.NewMainBranches(gui.UserConfig().Git.MainBranches, gui.os.Cmd),
MainBranches: git_commands.NewMainBranches(gui.c.Common, gui.os.Cmd),
},
Modes: &types.Modes{
Filtering: filtering.New(startArgs.FilterPath, ""),