Git.pm: Use stream-like writing in cat_blob()
commit66ca34e3836006d22fa521c4850314412d468a54
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 6 Aug 2011 11:44:42 +0000 (6 13:44 +0200)
tree7752054328e5fdff7eb65aeb98de8b87b7128fb2
parent5e56c41a34f2509f567f15a0dcdacc0d0bb55f6b
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