]> git.sesse.net Git - remoteglot/commitdiff
Ask for minimal diffs.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 24 Nov 2016 08:42:31 +0000 (09:42 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 24 Nov 2016 08:42:31 +0000 (09:42 +0100)
server/serve-analysis.js

index ed11e10a06edd810bc6d09cd99963c2fc615efbb..ec419162b033c18106e23b34675e42859618f1ab 100644 (file)
@@ -132,7 +132,7 @@ var create_json_historic_diff = function(new_json, history_left, new_diff_json,
        }
 
        var histobj = history_left.shift();
-       var diff = delta.JSON_delta.diff(histobj.parsed, new_json.parsed);
+       var diff = delta.JSON_delta.diff(histobj.parsed, new_json.parsed, true);
        var diff_text = JSON.stringify(diff);
        zlib.gzip(diff_text, function(err, buffer) {
                if (err) throw err;