Git.pm: Use stream-like writing in cat_blob()
commit0f57674f13493bf7e5e8710475cdb3d3f8fbb5b6
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 19 Apr 2011 14:37:04 +0000 (19 16:37 +0200)
tree95a584487a51f052d60d20453ee28ab67e889534
parent8d05952758fbdbf8001f2d9dbe550aa0317d7acf
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