Git.pm: Use stream-like writing in cat_blob()
commit54ca94a9fbd28e8e94eca8814adb9d1c6604b5b0
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 8 Oct 2011 19:55:29 +0000 (8 14:55 -0500)
tree4810363e46f2ce625d02cdb26b530d5a84c5a943
parenta3fc7b61642fb90da1ff28af591031c5de0e7d58
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