git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
1bc760a
)
Git.pm: fix example in command_close_bidi_pipe documentation
author
Michal Nazarewicz
<redacted>
Thu, 7 Feb 2013 14:01:18 +0000
(15:01 +0100)
committer
Junio C Hamano
<redacted>
Thu, 7 Feb 2013 18:37:32 +0000
(10:37 -0800)
File handle goes as the first argument when calling print on it.
Signed-off-by: Michal Nazarewicz <redacted>
Signed-off-by: Junio C Hamano <redacted>
perl/Git.pm
patch
|
blob
|
history
diff --git
a/perl/Git.pm
b/perl/Git.pm
index bbb753a0ac2b4dbff8b618d25b3efbc42f9ea9e0..11f310af1dcfcb1b4b6803d2fe161258a445e097 100644
(file)
--- a/
perl/Git.pm
+++ b/
perl/Git.pm
@@
-418,7
+418,7
@@
and it is the fourth value returned by C<command_bidi_pipe()>. The call idiom
is:
my ($pid, $in, $out, $ctx) = $r->command_bidi_pipe('cat-file --batch-check');
- print
"000000000\n" $out
;
+ print
$out "000000000\n"
;
while (<$in>) { ... }
$r->command_close_bidi_pipe($pid, $in, $out, $ctx);
git clone https://git.99rst.org/PROJECT