diff options
author | Jeff King <peff@peff.net> | 2020-11-04 14:28:34 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-04 14:05:28 -0800 |
commit | 1e1693b2bbaa9613f3a39a35196fc219c25f7677 (patch) | |
tree | b6c03623f712d2b450187c2b0053e33aee99097a /po | |
parent | format-patch: refactor output selection (diff) | |
download | tgif-1e1693b2bbaa9613f3a39a35196fc219c25f7677.tar.xz |
format-patch: tie file-opening logic to output_directory
In format-patch we're either outputting to stdout or to individual files
in an output directory (which may be just "./"). Our logic for whether
to open a new file for each patch is checked with "!use_stdout", but it
is equally correct to check for a non-NULL output_directory.
The distinction will matter when we add a new single-stream output in a
future patch, when only one of the three methods will want individual
files. Let's swap the logic here in preparation.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions