private function hasUncommittedChanges($git)
    {
        $status = $git->status()->short()->getIndexStatus();

        if (empty($status)) {
            return false;
        }

        return true;
    }
private function hasUncommittedChanges($git)
    {
        $status = $git->status()->short()->getIndexStatus();

        if (empty($status)) {
            return false;
        }

        return true;
    }
private function hasUncommittedChanges ( $ git ) { $ status = $ git -> status ( ) -> short ( ) -> getIndexStatus ( ) ; if ( empty ( $ status ) ) { return false ; } return true ; }
Check if git repository has uncommitted modifications.

@param GitRepository $git The repository to extract all files from.

@return bool
Check if git repository has uncommitted modifications .