Git.pm: Use stream-like writing in cat_blob()
commitb180746c78905157d0b58c3e8004ee3232d44b97
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 5 Jun 2012 18:44:17 +0000 (5 13:44 -0500)
treef2fcdfc8592fe2671ca3f4219018af94c88bae1e
parent9e8201c1dc369befb315b3a0dd1b1e491c73fd73
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