data/train/cpp/3c5c11325b53368a2e2887d217e639ae5267a63cRepoMan.cpp
Repo* RepoMan::open(const QString& path)
    {
        Git::Result result;
        Git::Repository repo = Git::Repository::open( result, path );
        if( !result || !repo.isValid() )
        {
            return NULL;
        }

        return open( repo );
    }
/**
     * @brief       Open a repository (By it's path)
     *
     * Opens a Git::Repository at the @a path and if this is valid, call open() to setup a RepoMan
     * repository for it.
     *
     * @param[in]   path    The path where to look for the repository to open.
     *
     * @return      A pointer to a Repo object that represents the repositorty. An existing one will
     *              be returned if such a Repo object can be found.
     *              `NULL` will be returned, if the repository cannot be opened.
     *
     */
@brief       Open a repository (By it's path)
Opens a Git::Repository at the @a path and if this is valid, call open() to setup a RepoMan
repository for it.

@param[in]   path    The path where to look for the repository to open.

@return      A pointer to a Repo object that represents the repositorty. An existing one will
be returned if such a Repo object can be found.
`NULL` will be returned, if the repository cannot be opened.
@brief Open a repository ( By it ' s path ) Opens a Git :: Repository at the @a path and if this is valid call open () to setup a RepoMan repository for it . @param [ in ] path The path where to look for the repository to open . @return A pointer to a Repo object that represents the repositorty . An existing one will be returned if such a Repo object can be found . ` NULL ` will be returned if the repository cannot be opened .
Repo* RepoMan::open(const QString& path)
    {
        Git::Result result;
        Git::Repository repo = Git::Repository::open( result, path );
        if( !result || !repo.isValid() )
        {
            return NULL;
        }
        return open( repo );
    }
Repo * RepoMan :: open ( const QString & path ) { Git :: Result result ; Git :: Repository repo = Git :: Repository :: open ( result , path ) ; if ( ! result || ! repo . isValid ( ) ) { return NULL ; } return open ( repo ) ; }
@brief       Open a repository (By it's path)
 Opens a Git::Repository at the @a path and if this is valid, call open() to setup a RepoMan
 repository for it.
@brief Open a repository ( By it ' s path ) Opens a Git :: Repository at the @a path and if this is valid call open () to setup a RepoMan repository for it .