Git.pm: fix example in command_close_bidi_pipe documentation
File handle goes as the first argument when calling print on it. Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
1bc760aeb7
commit
8a2cc51b6f
|
@ -418,7 +418,7 @@ and it is the fourth value returned by C<command_bidi_pipe()>. The call idiom
|
||||||
is:
|
is:
|
||||||
|
|
||||||
my ($pid, $in, $out, $ctx) = $r->command_bidi_pipe('cat-file --batch-check');
|
my ($pid, $in, $out, $ctx) = $r->command_bidi_pipe('cat-file --batch-check');
|
||||||
print "000000000\n" $out;
|
print $out "000000000\n";
|
||||||
while (<$in>) { ... }
|
while (<$in>) { ... }
|
||||||
$r->command_close_bidi_pipe($pid, $in, $out, $ctx);
|
$r->command_close_bidi_pipe($pid, $in, $out, $ctx);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue