[PATCH v4 08/10] format-patch: use stdout directly

2016-06-22 Thread Johannes Schindelin
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: J

Re: [PATCH v4 08/10] format-patch: use stdout directly

2016-06-24 Thread Junio C Hamano
Johannes Schindelin writes: > 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 > du