]> Sergey Matveev's repositories - public-inbox.git/commit
git cat-file wrapper uses syswrite for writes
authorEric Wong <e@80x24.org>
Fri, 2 May 2014 20:07:59 +0000 (20:07 +0000)
committerEric Wong <e@80x24.org>
Fri, 2 May 2014 20:07:59 +0000 (20:07 +0000)
commit85f6a372e8bea0b64ff7740c73c7d478fad201c4
tree7771d96382c92ff2fa056620d86d91e88458f1e3
parent55ff8f0893e1a1d57463861e0599717744f490bf
git cat-file wrapper uses syswrite for writes

The requests we make to git cat-file --batch are guaranteed to be
smaller than the 512 bytes required by PIPE_BUF, so there will be no
partial writes.  Bypass Perl IO layers and write directly to the
pipe to avoid needing IO::Handle here.
lib/PublicInbox/GitCatFile.pm