Git.pm: Use stream-like writing in cat_blob()
commit3e1598355a8947a3018214ca28a625b63cc67e21
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 5 Jan 2012 20:29:39 +0000 (5 14:29 -0600)
tree36231e1f1e874faa28e11a84cf6b6d7ce9a2ddb1
parent3c812f378753dd07a767805534864ddbb518994c
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