Git.pm: Use stream-like writing in cat_blob()
commit83a44befc6f7fb05e52e35b5a711b84058aed65b
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 24 Oct 2011 15:07:26 +0000 (24 10:07 -0500)
treee720ef63b1db897e15b273d52c84b3230d39a95c
parent5bc00c6e5a67874b41a42a2ed4ee7d3db3dada2e
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