Codota Logo
GitFetcher.displayFetchResult
Code IndexAdd Codota to your IDE (free)

How to use
displayFetchResult
method
in
git4idea.update.GitFetcher

Best Java code snippets using git4idea.update.GitFetcher.displayFetchResult (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: uwolfer/gerrit-intellij-plugin

  @Override
  public void run(@NotNull ProgressIndicator indicator) {
    GitRemote remote;
    String fetch;
    String url;
    boolean commitIsFetched = checkIfCommitIsFetched(gitRepository, commitHash);
    if (commitIsFetched) {
      // 'git fetch' works with a local path instead of a remote -> this way FETCH_HEAD is set
      remote = new GitRemote(gitRepository.getRoot().getPath(),
        Collections.<String>emptyList(), Collections.<String>emptySet(), Collections.<String>emptyList(), Collections.<String>emptyList());
      fetch = commitHash;
      url = "";
    } else {
      remote = getRemoteForChange(project, gitRepository, fetchInfo).orNull();
      if (remote == null) {
        return;
      }
      fetch = fetchInfo.ref;
      url = remote.getFirstUrl();
    }
    GitFetchResult result = fetchNatively(gitRepository.getGitDir(), remote, url, fetch, project, indicator);
    if (!result.isSuccess()) {
      GitFetcher.displayFetchResult(project, result, null, result.getErrors());
    }
  }
});
origin: PavlikPolivka/GitLabProjects

private boolean doFetchRemote(@NotNull BranchInfo branch) {
  if (branch.getName() == null) {
    return false;
  }
  GitFetchResult result =
      new GitFetcher(project, new EmptyProgressIndicator(), false).fetch(gitRepository.getRoot(), branch.getRemoteName(), null);
  if (!result.isSuccess()) {
    GitFetcher.displayFetchResult(project, result, null, result.getErrors());
    return false;
  }
  return true;
}
git4idea.updateGitFetcherdisplayFetchResult

Popular methods of GitFetcher

  • <init>
  • fetch

Popular in Java

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JTextField (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now