Skip to content

Commit

Permalink
Use git.paging.colorArg in diffing mode diff
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaller committed Apr 25, 2024
1 parent 047380f commit 98c5697
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/commands/git_commands/diff.go
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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(),
Expand Down

0 comments on commit 98c5697

Please sign in to comment.