Git.pm: Use stream-like writing in cat_blob()
commite91fdbabfe29b6e37f1bc582316a82f7784a0275
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 18 Feb 2011 16:09:08 +0000 (18 17:09 +0100)
treebe0942bed8807e3a0d99e077bf8e328bbe37fdeb
parenta42a2cd1b3399beb6b7fe1bc633ce1599021bbbb
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