feat: add GitVersion struct

This commit is contained in:
Ryooooooga 2022-12-26 23:43:08 +09:00
parent 41222f07ed
commit cd9111837e
No known key found for this signature in database
GPG key ID: 07CF200DFCC20C25
9 changed files with 144 additions and 84 deletions

View file

@ -53,6 +53,7 @@ type Loaders struct {
func NewGitCommand(
cmn *common.Common,
version *git_commands.GitVersion,
osCommand *oscommands.OSCommand,
gitConfig git_config.IGitConfig,
syncMutex *deadlock.Mutex,
@ -73,6 +74,7 @@ func NewGitCommand(
return NewGitCommandAux(
cmn,
version,
osCommand,
gitConfig,
dotGitDir,
@ -83,6 +85,7 @@ func NewGitCommand(
func NewGitCommandAux(
cmn *common.Common,
version *git_commands.GitVersion,
osCommand *oscommands.OSCommand,
gitConfig git_config.IGitConfig,
dotGitDir string,
@ -100,7 +103,7 @@ func NewGitCommandAux(
fileLoader := git_commands.NewFileLoader(cmn, cmd, configCommands)
gitCommon := git_commands.NewGitCommon(cmn, cmd, osCommand, dotGitDir, repo, configCommands, syncMutex)
gitCommon := git_commands.NewGitCommon(cmn, version, cmd, osCommand, dotGitDir, repo, configCommands, syncMutex)
statusCommands := git_commands.NewStatusCommands(gitCommon)
flowCommands := git_commands.NewFlowCommands(gitCommon)
remoteCommands := git_commands.NewRemoteCommands(gitCommon)