Examples of stashDrop()


Examples of org.eclipse.jgit.api.Git.stashDrop()

        /* git stash pop */
        applyCommand.setApplyUntracked(applyUntracked);
        applyCommand.setApplyIndex(applyIndex);
        applyCommand.call();

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

      }

View Full Code Here

Examples of org.eclipse.jgit.api.Git.stashDrop()

      if (isStashEmpty(git)) {
        String msg = "Failed to drop stashed changes due to an empty stash.";
        return statusHandler.handleRequest(request, response, new ServerStatus(IStatus.WARNING, HttpServletResponse.SC_BAD_REQUEST, msg, null));
      }

      StashDropCommand dropCommand = git.stashDrop();

      if (stashRev != null) {

        StashRef stashRef = getStashRef(git, stashRev);
        if (stashRef == null) {
View Full Code Here

Examples of org.eclipse.jgit.api.Git.stashDrop()

        for(RevCommit rev : stashes) {
            System.out.println("Found stash: " + rev);
        }
       
        // drop the 1st stash without applying it
        ObjectId call = git.stashDrop().setStashRef(0).call();
        System.out.println("StashDrop returned: " + call);
       
        ObjectId applied = git.stashApply().setStashRef(stash.getName()).call();
        System.out.println("Applied 2nd stash as: " + applied);
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.