Package org.eclipse.jgit.api

Examples of org.eclipse.jgit.api.DeleteBranchCommand


    HttpServletRequest request = requestInfo.request;
    HttpServletResponse response = requestInfo.response;
    Git git = requestInfo.git;
    try {
      if (gitSegment != null) {
        DeleteBranchCommand cc = git.branchDelete();
        cc.setBranchNames(gitSegment);
        // TODO: the force flag should be passed in the API call
        cc.setForce(true);
        cc.call();

        // TODO: do something with the result
        return true;
      }
      return false;
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.api.DeleteBranchCommand

Copyright © 2018 www.massapicom. 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.