Examples of tagList()


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

        JGitFlow flow = initCommand.setInitContext(ctx).setDirectory(git.getRepository().getWorkTree()).call();

        git.tag().setName(flow.getVersionTagPrefix() + "1.0").call();
       
        //just to make sure
        List<Ref> refs = git.tagList().call();
        String name = refs.get(0).getName();
       
        assertEquals(Constants.R_TAGS + "vtag/1.0",name);

        flow.releaseStart("1.0").call();
View Full Code Here

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

        JGitFlow flow = initCommand.setInitContext(ctx).setDirectory(git.getRepository().getWorkTree()).call();

        git.tag().setName(flow.getVersionTagPrefix() + "1.0").call();

        //just to make sure
        List<Ref> refs = git.tagList().call();
        String name = refs.get(0).getName();

        assertEquals(Constants.R_TAGS + "vtag/1.0",name);

        flow.hotfixStart("1.0").call();
View Full Code Here

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

      } catch (RefAlreadyExistsException e) {
        throw die(MessageFormat.format(CLIText.get().tagAlreadyExists,
            tagName));
      }
    } else {
      ListTagCommand command = git.tagList();
      List<Ref> list = command.call();
      for (Ref ref : list) {
        outw.println(Repository.shortenRefName(ref.getName()));
      }
    }
View Full Code Here

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

    try {
      // list all tags
      File gitDir = GitUtils.getGitDir(path);
      db = FileRepositoryBuilder.create(gitDir);
      Git git = new Git(db);
      List<Ref> refs = git.tagList().call();
      JSONObject result = new JSONObject();
      List<Tag> tags = new ArrayList<Tag>();
      for (Ref ref : refs) {
        if (nameFilter != null && !nameFilter.equals("")) {
          String shortName = Repository.shortenRefName(ref.getName());
View Full Code Here

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

        JGitFlow flow = initCommand.setInitContext(ctx).setDirectory(git.getRepository().getWorkTree()).call();

        git.tag().setName(flow.getVersionTagPrefix() + "1.0").call();
       
        //just to make sure
        List<Ref> refs = git.tagList().call();
        String name = refs.get(0).getName();
       
        assertEquals(Constants.R_TAGS + "vtag/1.0",name);

        flow.releaseStart("1.0").call();
View Full Code Here

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

        JGitFlow flow = initCommand.setInitContext(ctx).setDirectory(git.getRepository().getWorkTree()).call();

        git.tag().setName(flow.getVersionTagPrefix() + "1.0").call();

        //just to make sure
        List<Ref> refs = git.tagList().call();
        String name = refs.get(0).getName();

        assertEquals(Constants.R_TAGS + "vtag/1.0",name);

        flow.hotfixStart("1.0").call();
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.