Git.pm: Use stream-like writing in cat_blob()
commit5bec3d490c9e2371ed65800bf9ca2c5687c45d29
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Thu, 27 Oct 2011 08:51:52 +0000 (27 09:51 +0100)
tree7b2ff705c19f46c53e8b3370c17d415cd9614bac
parent2921b9e78bcfe5cd9f2bd8d411a65bcaa37c3e3f
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