1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-15 11:56:37 +02:00

Use git.paging.colorArg in diffing mode diff

This commit is contained in:
Stefan Haller 2024-04-23 12:42:46 +02:00
parent 047380f311
commit 98c569749f

View File

@ -1,6 +1,10 @@
package git_commands
import "github.com/jesseduffield/lazygit/pkg/commands/oscommands"
import (
"fmt"
"github.com/jesseduffield/lazygit/pkg/commands/oscommands"
)
type DiffCommands struct {
*GitCommon
@ -18,7 +22,7 @@ func (self *DiffCommands) DiffCmdObj(diffArgs []string) oscommands.ICmdObj {
Config("diff.noprefix=false").
Arg("--submodule").
Arg("--no-ext-diff").
Arg("--color").
Arg(fmt.Sprintf("--color=%s", self.UserConfig.Git.Paging.ColorArg)).
Arg(diffArgs...).
Dir(self.repoPaths.worktreePath).
ToArgv(),