https://bugzilla.gnome.org/show_bug.cgi?id=657359
Use a temp file for intermediate storage and properly unlink that tempfile after the diff is done.