Gitg hangs/crashes on commits with very large text files
Submitted by Daniel Cachapa
Link to original bug (#773256)
Description
gitg hangs when displaying commits with very large text files.
In my case, I'm pushing mapping files generated by running Proguard on an Android (Java) project. The files range from ~3 MB to 50 MB "dump" files (those I quickly learned not to commit anymore).
It seems that gitg loads the entire file to memory in order to show the preview. This causes it to hang for a few seconds, and in some cases to crash due to what I assume to be memory constraints.
OS: Fedora 24 Version: 3.20.3
Version: 3.20.x