1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

pass repo to struct

This commit is contained in:
Jesse Duffield
2022-01-08 14:44:07 +11:00
parent fdf79fdeee
commit e4e521f58a
3 changed files with 8 additions and 2 deletions

View File

@ -92,7 +92,7 @@ func NewGitCommandAux(
// This is admittedly messy, but allows us to test each command struct in isolation,
// and allows for better namespacing when compared to having every method living
// on the one struct.
configCommands := git_commands.NewConfigCommands(cmn, gitConfig)
configCommands := git_commands.NewConfigCommands(cmn, gitConfig, repo)
statusCommands := git_commands.NewStatusCommands(cmn, osCommand, repo, dotGitDir)
fileLoader := loaders.NewFileLoader(cmn, cmd, configCommands)
flowCommands := git_commands.NewFlowCommands(cmn, cmd, configCommands)