Package org.eclipse.jgit.transport

Examples of org.eclipse.jgit.transport.PackedObjectInfo


    packOut.beginObject(type, len);
    return offset;
  }

  private ObjectId endObject(ObjectId id, long offset) {
    PackedObjectInfo obj = new PackedObjectInfo(id);
    obj.setOffset(offset);
    obj.setCRC((int) packOut.crc32.getValue());
    objectList.add(obj);
    objectMap.addIfAbsent(obj);
    return id;
  }
View Full Code Here


      }
      chunk.appendDeflateOutput(def);
    }

    ObjectId objId = ObjectId.fromRaw(objDigest.digest());
    PackedObjectInfo oe = new PackedObjectInfo(objId);
    oe.setOffset(position);

    if (!chunk.isEmpty()) {
      packedSize += chunk.size();
      chunk.setObjectType(type);
View Full Code Here

    packOut.beginObject(type, len);
    return offset;
  }

  private ObjectId endObject(ObjectId id, long offset) {
    PackedObjectInfo obj = new PackedObjectInfo(id);
    obj.setOffset(offset);
    obj.setCRC((int) packOut.crc32.getValue());
    objectList.add(obj);
    objectMap.addIfAbsent(obj);
    return id;
  }
View Full Code Here

    }

    final MessageDigest d = Constants.newMessageDigest();
    final byte[] oeBytes = new byte[Constants.OBJECT_ID_LENGTH];
    for (int i = 0; i < getObjectCount(); i++) {
      final PackedObjectInfo oe = getObject(i);
      oe.copyRawTo(oeBytes, 0);
      d.update(oeBytes);
    }

    final String name = ObjectId.fromRaw(d.digest()).name();
    final File packDir = new File(db.getDirectory(), "pack"); //$NON-NLS-1$
View Full Code Here

    }

    final MessageDigest d = Constants.newMessageDigest();
    final byte[] oeBytes = new byte[Constants.OBJECT_ID_LENGTH];
    for (int i = 0; i < getObjectCount(); i++) {
      final PackedObjectInfo oe = getObject(i);
      oe.copyRawTo(oeBytes, 0);
      d.update(oeBytes);
    }

    final String name = ObjectId.fromRaw(d.digest()).name();
    final File packDir = new File(db.getDirectory(), "pack"); //$NON-NLS-1$
View Full Code Here

    packOut.beginObject(type, len);
    return offset;
  }

  private ObjectId endObject(ObjectId id, long offset) {
    PackedObjectInfo obj = new PackedObjectInfo(id);
    obj.setOffset(offset);
    obj.setCRC((int) packOut.crc32.getValue());
    objectList.add(obj);
    objectMap.addIfAbsent(obj);
    return id;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.transport.PackedObjectInfo

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.