Git.pm: Use stream-like writing in cat_blob()
commit63c67953c8ba9c3446e69c632989296341e17c5f
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 8 Jan 2012 17:11:47 +0000 (8 11:11 -0600)
tree58fae8c1b254d6b6861f1fc16bafcfff79af22f5
parentfc87b9b0752f5167da03cc69f7774ef32a293fcc
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