Skip to content

Commit 3da5220

Browse files
committed
enhance: force enable --patch option
1 parent 9e14327 commit 3da5220

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/Diff.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public Diff(string repo, Models.DiffOption opt, int unified, bool ignoreWhitespa
2424
Context = repo;
2525

2626
if (ignoreWhitespace)
27-
Args = $"diff --ignore-cr-at-eol --ignore-all-space --unified={unified} {opt}";
27+
Args = $"diff --patch --ignore-cr-at-eol --ignore-all-space --unified={unified} {opt}";
2828
else
29-
Args = $"diff --ignore-cr-at-eol --unified={unified} {opt}";
29+
Args = $"diff --patch --ignore-cr-at-eol --unified={unified} {opt}";
3030
}
3131

3232
public Models.DiffResult Result()

0 commit comments

Comments
 (0)