static function diff($commits = null, $paths = null, $args = null)
{
$commits = self::escargs($commits);
$args = self::escargs($args);
$paths = self::escargs($paths);
$cmd = 'diff ' . $args . ' ' . $commits;
if ($paths) {
$cmd .= ' -- ' . $paths;
}
return git::exec($cmd);
}