summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/remote.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-18 21:26:21 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-01-18 22:01:09 +1100
commit3e80a9e886007e11cc774b74a32959625e102750 (patch)
tree0388789b4929785542afcb9f3a6691db0873180f /pkg/commands/git_commands/remote.go
parent9706416a4171b9fce72d404ef38e2988b894c554 (diff)
refactor to group up more commonly used git command stuff
Diffstat (limited to 'pkg/commands/git_commands/remote.go')
-rw-r--r--pkg/commands/git_commands/remote.go15
1 files changed, 3 insertions, 12 deletions
diff --git a/pkg/commands/git_commands/remote.go b/pkg/commands/git_commands/remote.go
index fe8ab57b0..3116c764a 100644
--- a/pkg/commands/git_commands/remote.go
+++ b/pkg/commands/git_commands/remote.go
@@ -2,24 +2,15 @@ package git_commands
import (
"fmt"
-
- "github.com/jesseduffield/lazygit/pkg/commands/oscommands"
- "github.com/jesseduffield/lazygit/pkg/common"
)
type RemoteCommands struct {
- *common.Common
-
- cmd oscommands.ICmdObjBuilder
+ *GitCommon
}
-func NewRemoteCommands(
- common *common.Common,
- cmd oscommands.ICmdObjBuilder,
-) *RemoteCommands {
+func NewRemoteCommands(gitCommon *GitCommon) *RemoteCommands {
return &RemoteCommands{
- Common: common,
- cmd: cmd,
+ GitCommon: gitCommon,
}
}