Skip to content

Commit

Permalink
Merge branch 'mm/color-auto-default'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Junio C Hamano committed Jul 22, 2013
2 parents 06cbc13 + 7f3b8c6 commit 6a5b9ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/add.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ static int edit_patch(int argc, const char **argv, const char *prefix)

argc = setup_revisions(argc, argv, &rev, NULL);
rev.diffopt.output_format = DIFF_FORMAT_PATCH;
rev.diffopt.use_color = 0;
DIFF_OPT_SET(&rev.diffopt, IGNORE_DIRTY_SUBMODULES);
out = open(file, O_CREAT | O_WRONLY, 0666);
if (out < 0)
Expand Down

0 comments on commit 6a5b9ce

Please sign in to comment.