From 5820c2938f9897c8f895d050df2496efcb779edf Mon Sep 17 00:00:00 2001 From: Jan Varwig Date: Mon, 21 May 2018 23:42:38 +0200 Subject: [PATCH] Use --no-ext-diff option when generating diffs I have git configured to use `patdiff`, an external tool, by default. The resulting patches are useful for displaying them to a user, but they can't be applied --- src/makePatch.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/makePatch.ts b/src/makePatch.ts index 0afd94c4..7763c3f1 100644 --- a/src/makePatch.ts +++ b/src/makePatch.ts @@ -155,6 +155,7 @@ export default function makePatch( "--cached", "--no-color", "--ignore-space-at-eol", + "--no-ext-diff" ]).stdout.toString() if (patch.trim() === "") {