Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(git): disable external diff for patch output (#2553)
Magnus Alexander Strømseng7db034905b49
diff --git a/apps/server/src/vcs/GitVcsDriverCore.ts b/apps/server/src/vcs/GitVcsDriverCore.tsindex 42fda3c80..33d009b9d 100644--- a/apps/server/src/vcs/GitVcsDriverCore.ts+++ b/apps/server/src/vcs/GitVcsDriverCore.ts@@ -1494,7 +1494,7 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*const stagedPatch = yield* runGitStdoutWithOptions("GitVcsDriver.prepareCommitContext.stagedPatch",cwd,- ["diff", "--cached", "--patch", "--minimal"],+ ["diff", "--no-ext-diff", "--cached", "--patch", "--minimal"],{maxOutputBytes: PREPARED_COMMIT_PATCH_MAX_OUTPUT_BYTES,appendTruncationMarker: true,@@ -1731,7 +1731,7 @@ export const makeGitVcsDriverCore = Effect.fn("makeGitVcsDriverCore")(function*runGitStdoutWithOptions("GitVcsDriver.readRangeContext.diffPatch",cwd,- ["diff", "--patch", "--minimal", range],+ ["diff", "--no-ext-diff", "--patch", "--minimal", range],{maxOutputBytes: RANGE_DIFF_PATCH_MAX_OUTPUT_BYTES,appendTruncationMarker: true,