Git.pm: Use stream-like writing in cat_blob()
commitce82269e606de7bba867d098939c0a006f38aeed
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 30 Mar 2011 22:29:38 +0000 (31 00:29 +0200)
treea72bb56a789056ce1b836af1da0b5f7b4909b488
parentf28cde3d9e4cb87b46f92880fa5ee57ec73d2e7d
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