Git.pm: Use stream-like writing in cat_blob()
commit46f513faa0e5a991644b646d473c33c95d4d5d81
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 1 Jun 2011 10:38:47 +0000 (1 12:38 +0200)
tree69e47bf8bf304d6e2caabdec3b7ad0ebcc656851
parent5473487bbe567a190244b9456d0abc4c0187e3b4
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