Package org.eclipse.jgit.api

Examples of org.eclipse.jgit.api.StashDropCommand.call()


        applyCommand.setApplyIndex(applyIndex);
        applyCommand.call();

        StashDropCommand dropCommand = git.stashDrop();
        dropCommand.setAll(false);
        dropCommand.call();

      }

      return true;
View Full Code Here


        dropCommand.setStashRef(stashRef.getRef());

      } else
        dropCommand.setAll(true);

      dropCommand.call();
      return true;

    } catch (Exception ex) {
      String msg = "An error occured for stash command.";
      return statusHandler.handleRequest(request, response, new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, msg, ex));
View Full Code Here

      public void run(IProgressMonitor pm) throws CoreException {
        pm.beginTask("", 1); //$NON-NLS-1$
        StashDropCommand command = Git.wrap(repo).stashDrop();
        command.setStashRef(index);
        try {
          command.call();
          repo.fireEvent(new RefsChangedEvent());
        } catch (JGitInternalException e) {
          throw new TeamException(e.getLocalizedMessage(),
              e.getCause());
        } catch (GitAPIException e) {
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.