From: Eric Sunshine Date: Sun, 19 Jun 2016 20:01:59 GMT Subject: Re: [PATCH 5/5] format-patch: avoid freopen() Message-ID: In-Reply-To: On Sat, Jun 18, 2016 at 6:04 AM, Johannes Schindelin wrote: > We just taught the relevant functions to respect the diffopt.file field, > to allow writing somewhere else than stdout. Let's make use of it. > [...] > Signed-off-by: Johannes Schindelin > --- > diff --git a/builtin/log.c b/builtin/log.c > @@ -1569,6 +1570,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix) > setup_pager(); > > if (output_directory) { > + rev.diffopt.use_color = 0; What is this change about? It doesn't seem to be related to anything else in the patch. > if (use_stdout) > die(_("standard output, or directory, which one?")); > if (mkdir(output_directory, 0777) < 0 && errno != EEXIST)