Git.pm: allow pipes to be closed prior to calling command_close_bidi_pipe
commitf4c0035de660f5be4d78b0ba0aa8a7863b89c72f
authorMichal Nazarewicz <mina86@mina86.com>
Tue, 12 Feb 2013 14:02:31 +0000 (12 15:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Feb 2013 21:15:11 +0000 (12 13:15 -0800)
treeff3d58a09b6f65e79004b178704b5c245d73cc3b
parent1323dba6afad29d3cd07e9da85b947bfc2b912de
Git.pm: allow pipes to be closed prior to calling command_close_bidi_pipe

The command_close_bidi_pipe() function will insist on closing both
input and output pipes returned by command_bidi_pipe().  With this
change it is possible to close one of the pipes in advance and pass
undef as an argument.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
perl/Git.pm