Package org.eclipse.jgit.lib

Examples of org.eclipse.jgit.lib.GitIndex$Entry


        return r;
    }

    public static void doCheckout(Repository repo, Ref branch, OutputLogger logger) throws IOException {

        final GitIndex index = new GitIndex(repo);
        final Commit mapCommit = repo.mapCommit(branch.getObjectId());
        final Tree tree = mapCommit.getTree();
        final RefUpdate u;
        final WorkDirCheckout co;

        u = repo.updateRef(Constants.HEAD);
        u.setNewObjectId(mapCommit.getCommitId());
        u.forceUpdate();

        // checking out files
        co = new WorkDirCheckout(repo, repo.getWorkDir(), index, tree);
        co.checkout();
        // writing index
        index.write();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.lib.GitIndex$Entry

Copyright © 2018 www.massapicom. 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.