Git.pm: Use stream-like writing in cat_blob()
commitf1836d8e3ed894c092fa4cdaad6b1fc62f9359c9
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 29 May 2012 02:18:50 +0000 (28 21:18 -0500)
tree7a998facbd2a1c233e53f61bf2dceda5113f1289
parentce2c2c80b168e491a0b57e631d168e3a8eb75ad9
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