]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/log.c
format-patch: use stdout directly
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 22 Jun 2016 15:02:04 +0000 (17:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Jun 2016 22:20:47 +0000 (15:20 -0700)
commit36a4d905c36a598d17274765b57690ecfb4a23f8
tree54996ef84cc7a5471fd8e38ef5e2657dbe1ff027
parent95235f5ba1a9398c8503b809370ece18bba72ba2
format-patch: use stdout directly

Earlier, we freopen()ed stdout in order to write patches to files.
That forced us to duplicate stdout (naming it "realstdout") because we
*still* wanted to be able to report the file names.

As we do not abuse stdout that way anymore, we no longer need to
duplicate stdout, either.

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