]> git.ipfire.org Git - thirdparty/git.git/commit - log-tree.c
log-tree: respect diffopt's configured output file stream
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 22 Jun 2016 15:01:32 +0000 (17:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Jun 2016 20:56:50 +0000 (13:56 -0700)
commit4d7b0efc5e2eea1923803dd9c5d5d1288c99cd00
treec23cbd89ed4a6b2b9ef573eed5973e1653e78aee
parent6ea57703f660afd00159b67bf8749d90881df3b4
log-tree: respect diffopt's configured output file stream

The diff options already know how to print the output anywhere else
than stdout. The same is needed for log output in general, e.g.
when writing patches to files in `git format-patch`. Let's allow
users to use log_tree_commit() *without* changing global state via
freopen().

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
log-tree.c