data/train/cpp/3c5c11325b53368a2e2887d217e639ae5267a63cRepoMan.cpp
Repo* RepoMan::open(const Git::Repository& gitRepo)
    {
        RM_D(RepoMan);

        Repo* repo = repoByPath(gitRepo.workTreePath(), false);

        if(!repo) {
            repo = new Repo(gitRepo, this);
            d->repos.append(repo);

            Events::self()->repositoryOpened(repo);

            if (d->repos.count() == 1) {
                emit firstRepositoryOpened();
            }
        }

        activate( repo );
        return repo;
    }
/**
     * @brief       Setup a Repo object for a Git::Repository
     *
     * If there is no Repo object for the git repository at that place in the file system, a new one
     * will be created and registered with the repo-manager and the core.
     *
     * @param[in]   gitRepo The Git::Repository object
     *
     * @return      Returns either an existing Repo object or a newly created one.
     *
     */
@brief       Setup a Repo object for a Git::Repository
If there is no Repo object for the git repository at that place in the file system, a new one
will be created and registered with the repo-manager and the core.

@param[in]   gitRepo The Git::Repository object

@return      Returns either an existing Repo object or a newly created one.
@brief Setup a Repo object for a Git :: Repository If there is no Repo object for the git repository at that place in the file system a new one will be created and registered with the repo - manager and the core . @param [ in ] gitRepo The Git :: Repository object @return Returns either an existing Repo object or a newly created one .
Repo* RepoMan::open(const Git::Repository& gitRepo)
    {
        RM_D(RepoMan);
        Repo* repo = repoByPath(gitRepo.workTreePath(), false);
        if(!repo) {
            repo = new Repo(gitRepo, this);
            d->repos.append(repo);
            Events::self()->repositoryOpened(repo);
            if (d->repos.count() == 1) {
                emit firstRepositoryOpened();
            }
        }
        activate( repo );
        return repo;
    }
Repo * RepoMan :: open ( const Git :: Repository & gitRepo ) { RM_D ( RepoMan ) ; Repo * repo = repoByPath ( gitRepo . workTreePath ( ) , false ) ; if ( ! repo ) { repo = new Repo ( gitRepo , this ) ; d -> repos . append ( repo ) ; Events :: self ( ) -> repositoryOpened ( repo ) ; if ( d -> repos . count ( ) == 1 ) { emit firstRepositoryOpened ( ) ; } } activate ( repo ) ; return repo ; }
@brief       Setup a Repo object for a Git::Repository
 If there is no Repo object for the git repository at that place in the file system, a new one
 will be created and registered with the repo-manager and the core.
@brief Setup a Repo object for a Git :: Repository If there is no Repo object for the git repository at that place in the file system a new one will be created and registered with the repo - manager and the core .