summaryrefslogtreecommitdiff
path: root/rebase.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2020-11-04 14:28:34 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-11-04 14:05:28 -0800
commit1e1693b2bbaa9613f3a39a35196fc219c25f7677 (patch)
treeb6c03623f712d2b450187c2b0053e33aee99097a /rebase.c
parentformat-patch: refactor output selection (diff)
downloadtgif-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 'rebase.c')
0 files changed, 0 insertions, 0 deletions