Diff configuration

Swarm's Diffs feature can be customized via the following config items:

ignore_whitespace_default

Normally, Swarm diffs do not ignore whitespace by default. The user can toggle ignore whitespace off and on. However, whenever a review is reloaded in your browser (or you visit another review), the default is in effect.

If you and your users prefer that ignore whitespace is enabled by default, set the ignore_whitespace_default config item to true in the SWARM_ROOT/data/config.php file. For example:

<?php
    // this block should be a peer of 'p4'
    'diffs' => array(
        'ignore_whitespace_default' => true,
    ),

Max Diffs

If the number of diffs is greater than the configured maximum, then the list of diffs is truncated by default. An option will be given to show all the diffs for that file.

    'diffs' => array(
        'max_diffs' => 1500,
    ),