Search in sources :

Example 1 with GitUpdateProcess

use of git4idea.update.GitUpdateProcess in project intellij-community by JetBrains.

the class GitPushOperation method update.

@NotNull
protected GitUpdateResult update(@NotNull Collection<GitRepository> rootsToUpdate, @NotNull UpdateMethod updateMethod, boolean checkForRebaseOverMergeProblem) {
    GitUpdateResult updateResult = new GitUpdateProcess(myProject, myProgressIndicator, new HashSet<>(rootsToUpdate), UpdatedFiles.create(), checkForRebaseOverMergeProblem).update(updateMethod);
    for (GitRepository repository : rootsToUpdate) {
        repository.getRoot().refresh(true, true);
        repository.update();
    }
    return updateResult;
}
Also used : GitUpdateProcess(git4idea.update.GitUpdateProcess) GitUpdateResult(git4idea.update.GitUpdateResult) GitRepository(git4idea.repo.GitRepository) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

GitRepository (git4idea.repo.GitRepository)1 GitUpdateProcess (git4idea.update.GitUpdateProcess)1 GitUpdateResult (git4idea.update.GitUpdateResult)1 NotNull (org.jetbrains.annotations.NotNull)1