Git.pm: Use stream-like writing in cat_blob()
commitcb89d5c9f5293428245ce6ea4c3df409d617ac01
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 31 Oct 2011 16:47:56 +0000 (31 11:47 -0500)
tree5cfa1e29fedb709355b9410a1b924138c449515c
parenta1de966b3e16d34146cd029dc7dd6adbaf728731
Git.pm: Use stream-like writing in cat_blob()

This commit fixes the issue with the handling of large files causing an
'Out of memory' perl exception. Instead of reading and writing the whole
blob at once now the blob is written in small pieces.

The problem was raised and discussed in this mail to the msysGit mailing
list: http://thread.gmane.org/gmane.comp.version-control.msysgit/12080

Signed-off-by: Gregor Uhlenheuer <kongo2002@googlemail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
perl/Git.pm