Code

gitweb: Streamify patch output in git_commitdiff
authorJakub Narebski <jnareb@gmail.com>
Thu, 24 Aug 2006 17:34:36 +0000 (19:34 +0200)
committerJunio C Hamano <junkio@cox.net>
Sat, 26 Aug 2006 02:38:30 +0000 (19:38 -0700)
commit157e43b4b0dd5a08eb7a6838192ac58bca62fa5b
treebe8e2aedf04d03bef78025101be5b27c0f8bea7f
parent1613b79faa63e3d0c1add4facc286c18cf1204db
gitweb: Streamify patch output in git_commitdiff

Change output of patch(set) in git_commitdiff from slurping whole diff
in @patchset array before processing, to passing file descriptor to
git_patchset_body.

Advantages: faster, incremental output, smaller memory footprint.
Disadvantages: cannot react when there is error during closing file
descriptor.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl