Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 6a5b9ce

Browse files
committed
Merge branch 'mm/color-auto-default'
A finishing touch to fix breakage to "add -e" caused by defaulting ui.color to "auto". * mm/color-auto-default: git add -e: Explicitly specify that patch should have no color
2 parents 06cbc13 + 7f3b8c6 commit 6a5b9ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/add.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ static int edit_patch(int argc, const char **argv, const char *prefix)
343343

344344
argc = setup_revisions(argc, argv, &rev, NULL);
345345
rev.diffopt.output_format = DIFF_FORMAT_PATCH;
346+
rev.diffopt.use_color = 0;
346347
DIFF_OPT_SET(&rev.diffopt, IGNORE_DIRTY_SUBMODULES);
347348
out = open(file, O_CREAT | O_WRONLY, 0666);
348349
if (out < 0)

0 commit comments

Comments
 (0)