diff options
author | Davyd McColl <davydm@gmail.com> | 2021-06-14 10:45:29 +0200 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-07-01 17:13:14 +1000 |
commit | ae2496cf809533a16e7494470fdf5209fa023804 (patch) | |
tree | 730b91f1560590fb1520d06a87ded60264dcb017 /pkg/commands/files.go | |
parent | 2ac33bb83d661a53a10816e9ba4714e2aa747fe9 (diff) |
:art: prefer the long switch over the short one for easier reading
Diffstat (limited to 'pkg/commands/files.go')
-rw-r--r-- | pkg/commands/files.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/files.go b/pkg/commands/files.go index 648c5f511..f4588aac5 100644 --- a/pkg/commands/files.go +++ b/pkg/commands/files.go @@ -211,7 +211,7 @@ func (c *GitCommand) WorktreeFileDiffCmdStr(node models.IFile, plain bool, cache colorArg = "never" } if ignoreWhitespace { - ignoreWhitespaceArg = "-w" + ignoreWhitespaceArg = "--ignore-all-space" } return fmt.Sprintf("git diff --submodule --no-ext-diff --color=%s %s %s %s %s", colorArg, ignoreWhitespaceArg, cachedArg, trackedArg, path) |