[git] load commit details line by line to spend less memory
authorJulia Beliaeva <Julia.Beliaeva@jetbrains.com>
Sat, 8 Oct 2016 17:07:22 +0000 (20:07 +0300)
committerJulia Beliaeva <Julia.Beliaeva@jetbrains.com>
Tue, 11 Oct 2016 16:32:30 +0000 (19:32 +0300)
commit22ad33f0ec2637786c0ce9ab937067b53f80ef7d
tree2e51b2d79e8a385633447aadf185b4616b27f59f
parent489b0ccd790b2833790a4e11c89f9f2bfc8e4146
[git] load commit details line by line to spend less memory

Loading the whole Git output to parse it later can lead to large
temporary memory allocations and even OOM. To avoid this, load and parse
commit details iteratively, as it is already done when the whole
log is requested.

This may help with IDEA-161953
plugins/git4idea/src/git4idea/history/GitHistoryUtils.java