git::diff PHP Method

diff() static public method

Each argument can be a string or and array of strings (or null to skip)
static public diff ( $commits = null, $paths = null, $args = null )
    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);
    }