Git.pm: Use stream-like writing in cat_blob()
commit9e70b8fe21d6e268c7dfbc83c3cb275e297583c4
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 1 Oct 2012 13:34:08 +0000 (1 14:34 +0100)
tree3fb6a30cf94f7121f1885ea6145202f9dfa68b83
parent050e8e06c92909a1531f893deb903c9b92d3494c
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