Git.pm: Use stream-like writing in cat_blob()
commitc3e2378010f474f96aaa2d4ee2e8b09d5447a69e
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 24 Apr 2011 23:42:47 +0000 (25 00:42 +0100)
tree6c506ece531d6821bf886a63611419b0c5191770
parente51d5af4efa828f5fadd1fecfda642247a1bb0d8
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