Git.pm: Use stream-like writing in cat_blob()
commit06d0a8cd505b01f926ab1de21c3c57aa681c5dfe
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 4 Jun 2011 13:36:31 +0000 (4 15:36 +0200)
tree00c638c3265f7a38ff8f8b836e26e3797ede9d90
parent02f77e8c176bd18da2e17944b5c1e9e95aff2598
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