Git.pm: Use stream-like writing in cat_blob()
commit8089c85c07fd6b3df6f55bafce8adf057e271161
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 4 Nov 2011 18:40:09 +0000 (4 13:40 -0500)
tree7925ddb0cbd5aa9e2e2a8ea9487f02fd0055f9d6
parentd3d677e244e131b6da6b09a503239068bd3caf2b
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