Git.pm: Use stream-like writing in cat_blob()
commit53c28ba0e950d41f24bf54fba49d3b85f30d6caa
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 17:05:21 +0000 (15 18:05 +0100)
tree7edf115718ecb73febd1c1d86490b1a2a10ac456
parent17706a5251d9e1259d6c4597909bdbfa999b28d8
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