public function getStatus($pathspec = null, $_ = null)
    {
        $this->porcelain();

        $status = \call_user_func_array([$this, 'execute'], \func_get_args());
        $status = \explode("\n", $status);

        $files = [];

        foreach ($status as $line) {
            if (\trim($line)) {
                $index    = \trim(\substr($line, 0, 1));
                $worktree = \trim(\substr($line, 1, 1));

                if ($index && $worktree) {
                    $file         = \trim(\substr($line, 2));
                    $files[$file] = [
                        'index'    => $index ?: false,
                        'worktree' => $worktree ?: false,
                    ];
                }
            }
        }

        return $files;
    }