Package org.eclipse.jgit.api

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


    commitOneFileChange("on side");

    git.checkout().setName("master").call();
    commitOneFileChange("on master");

    git.merge().include(repository.getRef("side")).call();
    assertEquals(RepositoryState.MERGING, repository.getRepositoryState());

    StagingViewTester stagingView = StagingViewTester
        .openStagingView();
    assertEquals("", stagingView.getCommitMessage());
View Full Code Here


        git.commit().setMessage("committing junk file").call();

        assertFalse(GitHelper.isMergedInto(git,"develop","master"));
       
        git.checkout().setName("master").call();
        git.merge().include(GitHelper.getLocalBranch(git, "develop")).call();

        assertTrue(GitHelper.isMergedInto(git, "develop", "master"));
       
    }
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.