]> git.ipfire.org Git - thirdparty/git.git/commit - combine-diff.c
combine-diff: abort if --output is given
authorRené Scharfe <l.s.r@web.de>
Sat, 18 Jun 2022 11:12:34 +0000 (13:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Jun 2022 16:56:33 +0000 (09:56 -0700)
commitcfb19ae05f4565bc9d0a0cb3a23a3d2ab9fb8fab
tree3445b2aa7894bcf688a9cff79654e93cf6e2d2be
parente3d1be4237b831b517a54c70ae3c4ec3840345a4
combine-diff: abort if --output is given

The code for combined diffs currently only writes to stdout.  Abort and
report that fact instead of silently ignoring the --output option.  The
(empty) output file has already been created at that point, though.

Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
combine-diff.c