range-diff: respect diff_option.file rather than assuming 'stdout'
commit87f1b2d45ca7987cc6cc1a74eb66a77fa11fab94
authorEric Sunshine <sunshine@sunshineco.com>
Sun, 22 Jul 2018 09:57:10 +0000 (22 05:57 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Aug 2018 21:24:56 +0000 (14 14:24 -0700)
treee38ddf762e28fc555c4e4a41169428b7979507cb
parent5cf00cbc0f0134d658c0507160854e677af6d199
range-diff: respect diff_option.file rather than assuming 'stdout'

The actual diffs output by range-diff respect diff_option.file, which
range-diff passes down the call-chain, thus are destination-agnostic.
However, output_pair_header() is hard-coded to emit to 'stdout'. Fix
this by making output_pair_header() respect diff_option.file, as well.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
range-diff.c