Package org.locationtech.geogig.api

Examples of org.locationtech.geogig.api.SymRef


        RevCommit commit = cb.setTreeId(treeId).setCommitter("Gabriel Roldan")
                .setAuthor("Gabriel Roldan").build();
        objectDb.put(commit);

        SymRef head = (SymRef) geogig.command(RefParse.class).setName(Ref.HEAD).call().get();
        final String currentBranch = head.getTarget();

        geogig.command(UpdateRef.class).setName(currentBranch).setNewValue(commit.getId()).call();

        verifyRepositoryTree(NodeRef.ROOT, treeId);
        verifyTreeStructure(treeId, treeRefs);
View Full Code Here


                writer.start();
                if (!currHead.isPresent()) {
                    writer.writeErrors("Repository has no HEAD.");
                } else {
                    if (currHead.get() instanceof SymRef) {
                        final SymRef headRef = (SymRef) currHead.get();
                        writer.writeHeaderElements("branch", Ref.localName(headRef.getTarget()));
                    }
                }

                writer.writeStaged(geogig.command(DiffIndex.class).addFilter(pathFilter), offset,
                        limit);
View Full Code Here

TOP

Related Classes of org.locationtech.geogig.api.SymRef

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.