mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-12 11:15:00 +02:00
20 lines
441 B
Go
20 lines
441 B
Go
|
package git_commands
|
||
|
|
||
|
import "github.com/jesseduffield/lazygit/pkg/commands/oscommands"
|
||
|
|
||
|
type DiffCommands struct {
|
||
|
*GitCommon
|
||
|
}
|
||
|
|
||
|
func NewDiffCommands(gitCommon *GitCommon) *DiffCommands {
|
||
|
return &DiffCommands{
|
||
|
GitCommon: gitCommon,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (self *DiffCommands) DiffCmdObj(diffArgs []string) oscommands.ICmdObj {
|
||
|
return self.cmd.New(
|
||
|
NewGitCmd("diff").Arg("--submodule", "--no-ext-diff", "--color").Arg(diffArgs...).ToArgv(),
|
||
|
)
|
||
|
}
|