use of org.locationtech.geogig.api.RevPerson in project GeoGig by boundlessgeo.
the class FormatCommonV2 method readCommit.
public static RevCommit readCommit(ObjectId id, DataInput in) throws IOException {
final ObjectId treeId = readObjectId(in);
final int nParents = readUnsignedVarInt(in);
final Builder<ObjectId> parentListBuilder = ImmutableList.builder();
for (int i = 0; i < nParents; i++) {
ObjectId parentId = readObjectId(in);
parentListBuilder.add(parentId);
}
final RevPerson author = readRevPerson(in);
final RevPerson committer = readRevPerson(in);
final String message = in.readUTF();
return new RevCommitImpl(id, treeId, parentListBuilder.build(), author, committer, message);
}
use of org.locationtech.geogig.api.RevPerson in project GeoGig by boundlessgeo.
the class FormatCommonV2 method readTag.
public static RevTag readTag(ObjectId id, DataInput in) throws IOException {
final ObjectId commitId = readObjectId(in);
final String name = in.readUTF();
final String message = in.readUTF();
final RevPerson tagger = readRevPerson(in);
return new RevTagImpl(id, name, commitId, message, tagger);
}
Aggregations