From https://www.mediawiki.org/wiki/CheckSyntax.php
--modified check only files modified in the current working copy (requires that the script is run from a Subversion checkout and that the SVN command-line client is present. Use this option to quickly check your changes before committing them to the repository.
This should be updated for git support.
Version: unspecified
Severity: normal