Examples of branchCreate()


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

    Git git = new Git(db);
    writeTrashFile("a", "Hello world a");
    writeTrashFile("b", "Hello world b");
    git.add().addFilepattern(".").call();
    git.commit().setMessage("add files a & b").call();
    Ref branch_1 = git.branchCreate().setName("branch_1").call();
    git.rm().addFilepattern("a").call();
    FileUtils.createSymLink(new File(db.getWorkTree(), "a"), "b");
    git.add().addFilepattern("a").call();
    git.commit().setMessage("add symlink a").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.