Git.pm: Use stream-like writing in cat_blob()
commit1fb56b497721a4be371274647800c60885df39a9
authorGregor Uhlenheuer <kongo2002@googlemail.com>
Fri, 18 Feb 2011 10:42:12 +0000 (18 11:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 22 Mar 2011 12:35:25 +0000 (22 13:35 +0100)
treee6ef97a9cc8172512ee20a1b0cc65de0ebc815c4
parenta6f7d64f3fdf576dd41af99014620428f0c7e8cf
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