Examples of featureStart()


Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

        File junkFile = new File(remoteGit.getRepository().getWorkTree(), "junk.txt");
        FileUtils.writeStringToFile(junkFile, "I am junk");
        remoteGit.add().addFilepattern(junkFile.getName()).call();
        remoteGit.commit().setMessage("adding junk file").call();

        flow.featureStart("my-feature").setFetchDevelop(true).call();

    }

    @Test(expected = JGitFlowException.class)
    public void startFeatureWithFetchNoRemote() throws Exception
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

        git = RepoUtil.createRepositoryWithMaster(newDir());
        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();

        flow.featureStart("my-feature").setFetchDevelop(true).call();
    }

    @Test(expected = LocalBranchExistsException.class)
    public void startFeatureWithExistingLocalBranch() throws Exception
    {
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

        JGitFlowInitCommand initCommand = new JGitFlowInitCommand();
        JGitFlow flow = initCommand.setDirectory(git.getRepository().getWorkTree()).call();
       
        git.branchCreate().setName(flow.getFeatureBranchPrefix() + "my-feature").call();
       
        flow.featureStart("my-feature").call();
    }

    @Test
    public void startFeatureWithLocalBehindMasterNoFetch() throws Exception
    {
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

        File junkFile = new File(remoteGit.getRepository().getWorkTree(), "junk.txt");
        FileUtils.writeStringToFile(junkFile, "I am junk");
        remoteGit.add().addFilepattern(junkFile.getName()).call();
        remoteGit.commit().setMessage("adding junk file").call();

        flow.featureStart("my-feature").call();

        assertEquals(flow.getFeatureBranchPrefix() + "my-feature", git.getRepository().getBranch());

    }
   
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

    public void startFeatureWithoutFlowInit() throws Exception
    {
        Git git = RepoUtil.createRepositoryWithMaster(newDir());
        JGitFlow flow = JGitFlow.get(git.getRepository().getWorkTree());

        flow.featureStart("my-feature").call();
    }
}
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

            //make sure we're on develop
            flow.git().checkout().setName(flow.getDevelopBranchName()).call();

            featureName = getFeatureStartName(ctx, flow);

            flow.featureStart(featureName)
                .setAllowUntracked(ctx.isAllowUntracked())
                .setPush(ctx.isPushFeatures())
                .setStartCommit(ctx.getStartCommit())
                .call();
           
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

            if (ctx.isPushFeatures())
            {
                projectHelper.ensureOrigin(ctx.getDefaultOriginUrl(), flow);
            }

            flow.featureStart(featureName)
                .setAllowUntracked(ctx.isAllowUntracked())
                .setPush(ctx.isPushFeatures())
                .setStartCommit(ctx.getStartCommit())
                .call();
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

           
            flow = jGitFlowProvider.gitFlow();

            startExtension.init();

            flow.featureStart(featureName)
                .setAllowUntracked(ctx.isAllowUntracked())
                .setPush(ctx.isPushFeatures())
                .setStartCommit(ctx.getStartCommit())
                .setScmMessagePrefix(ctx.getScmCommentPrefix())
                .setScmMessageSuffix(ctx.getScmCommentSuffix())
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

            if(ctx.isPushFeatures())
            {
                projectHelper.ensureOrigin(ctx.getDefaultOriginUrl(), flow);
            }
           
            flow.featureStart(featureName)
                .setAllowUntracked(ctx.isAllowUntracked())
                .setPush(ctx.isPushFeatures())
                .setStartCommit(ctx.getStartCommit())
                .call();
           
View Full Code Here

Examples of com.atlassian.jgitflow.core.JGitFlow.featureStart()

            if (ctx.isPushFeatures())
            {
                projectHelper.ensureOrigin(ctx.getDefaultOriginUrl(), flow);
            }

            flow.featureStart(featureName)
                .setAllowUntracked(ctx.isAllowUntracked())
                .setPush(ctx.isPushFeatures())
                .setStartCommit(ctx.getStartCommit())
                .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.