1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Respect the diff context size when showing a range diff

This applies to both the "sticky" range diff when diffing mode is on, and the
more temporary one when selecting a range of commits.
This commit is contained in:
Stefan Haller
2024-11-27 19:45:47 +01:00
parent 5cca4c7063
commit 7fb9e8fa9a

View File

@ -29,6 +29,7 @@ func (self *DiffCommands) DiffCmdObj(diffArgs []string) oscommands.ICmdObj {
Arg("--submodule").
Arg(fmt.Sprintf("--color=%s", self.UserConfig().Git.Paging.ColorArg)).
ArgIf(ignoreWhitespace, "--ignore-all-space").
Arg(fmt.Sprintf("--unified=%d", self.AppState.DiffContextSize)).
Arg(diffArgs...).
Dir(self.repoPaths.worktreePath).
ToArgv(),