refactor to group up more commonly used git command stuff

This commit is contained in:
Jesse Duffield 2022-01-18 21:26:21 +11:00
parent 9706416a41
commit 3e80a9e886
18 changed files with 195 additions and 301 deletions

View file

@ -5,22 +5,15 @@ import (
"github.com/go-errors/errors"
"github.com/jesseduffield/lazygit/pkg/commands/oscommands"
"github.com/jesseduffield/lazygit/pkg/common"
)
type SyncCommands struct {
*common.Common
cmd oscommands.ICmdObjBuilder
*GitCommon
}
func NewSyncCommands(
common *common.Common,
cmd oscommands.ICmdObjBuilder,
) *SyncCommands {
func NewSyncCommands(gitCommon *GitCommon) *SyncCommands {
return &SyncCommands{
Common: common,
cmd: cmd,
GitCommon: gitCommon,
}
}