Examples of tagDelete()


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

    HttpServletRequest request = requestInfo.request;
    HttpServletResponse response = requestInfo.response;
    Git git = requestInfo.git;
    if (gitSegment != null) {
      try {
        git.tagDelete().setTags(gitSegment).call();
        return true;
      } catch (GitAPIException e) {
        return statusHandler.handleRequest(request, response, new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_INTERNAL_SERVER_ERROR,
            "An error occured when removing a tag.", e));
      }
View Full Code Here

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

        final String version = parts[1];

        final String tag = MessageFormat.format(releaseConvention.getTagFormat(), version);
        if (repo.resolve(tag) != null) {
            log.info("Deleting tag: " + tag);
            git.tagDelete().setTags(tag).call();
        }

        git.reset().setMode(ResetCommand.ResetType.HARD).setRef(sha).call();

        if (!transactionFile.delete()) {
View Full Code Here

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

        // prepare test-repository
        Repository repository = CookbookHelper.openJGitCookbookRepository();
        Git git = new Git(repository);

        // remove the tag before creating it
        git.tagDelete().setTags("tag_for_testing").call();

        // set it on the current HEAD
        Ref tag = git.tag().setName("tag_for_testing").call();
        System.out.println("Created/moved tag " + tag + " to repository at " + repository.getDirectory());
View Full Code Here

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

        // set it on the current HEAD
        Ref tag = git.tag().setName("tag_for_testing").call();
        System.out.println("Created/moved tag " + tag + " to repository at " + repository.getDirectory());

        // remove the tag again
        git.tagDelete().setTags("tag_for_testing").call();

        // read some other commit and set the tag on it
        ObjectId id = repository.resolve("HEAD^");
        RevWalk walk = new RevWalk(repository);
        RevCommit commit = walk.parseCommit(id);
View Full Code Here

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

        RevCommit commit = walk.parseCommit(id);
        tag = git.tag().setObjectId(commit).setName("tag_for_testing").call();
        System.out.println("Created/moved tag " + tag + " to repository at " + repository.getDirectory());

        // remove the tag again
        git.tagDelete().setTags("tag_for_testing").call();

        // create an annotated tag
        tag = git.tag().setName("tag_for_testing").setAnnotated(true).call();
        System.out.println("Created/moved tag " + tag + " to repository at " + repository.getDirectory());
View Full Code Here

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

        // create an annotated tag
        tag = git.tag().setName("tag_for_testing").setAnnotated(true).call();
        System.out.println("Created/moved tag " + tag + " to repository at " + repository.getDirectory());

        // remove the tag again
        git.tagDelete().setTags("tag_for_testing").call();

        walk.dispose();

        repository.close();
    }
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.