Git.pm: Use stream-like writing in cat_blob()
commit9b3eb676291dfb020b233957ee161a3f73697940
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:51:27 +0000 (1 12:51 +0200)
treee4a7b21a45b6098a8c88f491407f17fda6f72599
parent4c27350706503de83b3128d1d4120a2968758854
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