diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-18 21:26:21 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-18 22:01:09 +1100 |
commit | 3e80a9e886007e11cc774b74a32959625e102750 (patch) | |
tree | 0388789b4929785542afcb9f3a6691db0873180f /pkg/commands/git_commands/submodule.go | |
parent | 9706416a4171b9fce72d404ef38e2988b894c554 (diff) |
refactor to group up more commonly used git command stuff
Diffstat (limited to 'pkg/commands/git_commands/submodule.go')
-rw-r--r-- | pkg/commands/git_commands/submodule.go | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/pkg/commands/git_commands/submodule.go b/pkg/commands/git_commands/submodule.go index 3630f531f..c08474bc0 100644 --- a/pkg/commands/git_commands/submodule.go +++ b/pkg/commands/git_commands/submodule.go @@ -10,7 +10,6 @@ import ( "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/commands/oscommands" - "github.com/jesseduffield/lazygit/pkg/common" ) // .gitmodules looks like this: @@ -19,17 +18,12 @@ import ( // url = git@github.com:subbo.git type SubmoduleCommands struct { - *common.Common - - cmd oscommands.ICmdObjBuilder - dotGitDir string + *GitCommon } -func NewSubmoduleCommands(common *common.Common, cmd oscommands.ICmdObjBuilder, dotGitDir string) *SubmoduleCommands { +func NewSubmoduleCommands(gitCommon *GitCommon) *SubmoduleCommands { return &SubmoduleCommands{ - Common: common, - cmd: cmd, - dotGitDir: dotGitDir, + GitCommon: gitCommon, } } |