Skip to content

Commit 9d09c2b

Browse files
committed
fix: use --ignore-space-change instead of --ignore-all-space when Ignore All Whitespace Changes option is enabled (#1752)
Signed-off-by: leo <[email protected]>
1 parent 440c97b commit 9d09c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/Diff.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public Diff(string repo, Models.DiffOption opt, int unified, bool ignoreWhitespa
2626
Context = repo;
2727

2828
if (ignoreWhitespace)
29-
Args = $"diff --no-color --no-ext-diff --patch --ignore-all-space --unified={unified} {opt}";
29+
Args = $"diff --no-color --no-ext-diff --patch --ignore-space-change --ignore-cr-at-eol --unified={unified} {opt}";
3030
else if (Models.DiffOption.IgnoreCRAtEOL)
3131
Args = $"diff --no-color --no-ext-diff --patch --ignore-cr-at-eol --unified={unified} {opt}";
3232
else

0 commit comments

Comments
 (0)