Package org.eclipse.egit.core.op

Examples of org.eclipse.egit.core.op.CreateLocalBranchOperation.execute()


      RevCommit commit, IProgressMonitor monitor) throws CoreException,
      GitAPIException {
    monitor.setTaskName(UIText.FetchGerritChangePage_CreatingBranchTaskName);
    CreateLocalBranchOperation bop = new CreateLocalBranchOperation(
        repository, textForBranch, commit);
    bop.execute(monitor);

    if (doCheckout) {
      CheckoutCommand co = new Git(repository).checkout();
      try {
        co.setName(textForBranch).call();
View Full Code Here


    else
      cbop = new CreateLocalBranchOperation(myRepository, newRefName,
          myRepository.getRef(this.sourceRefName),
          upstreamConfig);

    cbop.execute(monitor);

    if (checkout.getSelection()) {
      if (monitor.isCanceled())
        return;
      monitor.beginTask(UIText.CreateBranchPage_CheckingOutMessage,
View Full Code Here

  private void checkoutNewLocalBranch(String branchName)
      throws Exception {
    CreateLocalBranchOperation createBranch = new CreateLocalBranchOperation(
        repository, branchName, repository.getRef("master"),
        UpstreamConfig.NONE);
    createBranch.execute(null);
    BranchOperation checkout = new BranchOperation(repository, branchName);
    checkout.execute(null);
  }

  private Repository createRemoteRepository() throws IOException {
View Full Code Here

  private void checkoutNewLocalBranch(String branchName)
      throws Exception {
    CreateLocalBranchOperation createBranch = new CreateLocalBranchOperation(
        repository, branchName, repository.getRef("master"),
        UpstreamConfig.NONE);
    createBranch.execute(null);
    BranchOperation checkout = new BranchOperation(repository, branchName);
    checkout.execute(null);
  }

  private void assertBranchPushed(String branchName, Repository remoteRepo)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.