The best way to control Claude Code, Codex and more from any computer or phone
fix(git): disable external diff for patch output (#2553)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Magnus Alexander Strømseng committed
Jun 12, 2026 at 03:18 UTC
7db034905b49e6c3448057e484a50e14ebb64d80
1 file changed
+2
-2
apps/server/src/vcs/GitVcsDriverCore.ts
+2
-2
@@ -1494,7 +1494,7 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
1494
const stagedPatch = yield* runGitStdoutWithOptions(
1495
"GitVcsDriver.prepareCommitContext.stagedPatch",
1496
cwd,
1497
- ["diff", "--cached", "--patch", "--minimal"],
1497
+ ["diff", "--no-ext-diff", "--cached", "--patch", "--minimal"],
1498
{
1499
maxOutputBytes: PREPARED_COMMIT_PATCH_MAX_OUTPUT_BYTES,
1500
appendTruncationMarker: true,
@@ -1731,7 +1731,7 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*
1731
runGitStdoutWithOptions(
1732
"GitVcsDriver.readRangeContext.diffPatch",
1733
cwd,
1734
- ["diff", "--patch", "--minimal", range],
1734
+ ["diff", "--no-ext-diff", "--patch", "--minimal", range],
1735
{
1736
maxOutputBytes: RANGE_DIFF_PATCH_MAX_OUTPUT_BYTES,
1737
appendTruncationMarker: true,