summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/stash.go
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-08-28 12:39:52 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-09-04 17:50:49 +0200
commit1dac4158e9d8c8ab60203c76e9f86af409724823 (patch)
tree8f3a2175b6c42ba544a74e1e5f4bb91e7d7afce7 /pkg/commands/git_commands/stash.go
parent18c57804854692bd84ac50e88a10da7d81df363d (diff)
Don't pass ignoreWhitespace to git commands
Now that AppState is available via common.Common, they can take it from there.
Diffstat (limited to 'pkg/commands/git_commands/stash.go')
-rw-r--r--pkg/commands/git_commands/stash.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/git_commands/stash.go b/pkg/commands/git_commands/stash.go
index 562e7b97d..12907a6ae 100644
--- a/pkg/commands/git_commands/stash.go
+++ b/pkg/commands/git_commands/stash.go
@@ -80,13 +80,13 @@ func (self *StashCommands) Sha(index int) (string, error) {
return strings.Trim(sha, "\r\n"), err
}
-func (self *StashCommands) ShowStashEntryCmdObj(index int, ignoreWhitespace bool) oscommands.ICmdObj {
+func (self *StashCommands) ShowStashEntryCmdObj(index int) oscommands.ICmdObj {
cmdArgs := NewGitCmd("stash").Arg("show").
Arg("-p").
Arg("--stat").
Arg(fmt.Sprintf("--color=%s", self.UserConfig.Git.Paging.ColorArg)).
Arg(fmt.Sprintf("--unified=%d", self.UserConfig.Git.DiffContextSize)).
- ArgIf(ignoreWhitespace, "--ignore-all-space").
+ ArgIf(self.AppState.IgnoreWhitespaceInDiffView, "--ignore-all-space").
Arg(fmt.Sprintf("stash@{%d}", index)).
ToArgv()