The file format is specified at https://git-scm.com/docs/pack-format#_pack_rev_files_have_the_format.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected void | writeBody(List<? extends PackedObjectInfo>
the objects whose forward index file positions should be
written, sorted by forward index file position; not modified
during method objectsByIndexPos)Implements abstract org. Write the body of a reverse index file, usually the forward index positions of the given objects, sorted by those objects' pack file offsets. |
| protected void | writeHeader()
Implements abstract org. Write the header of a reverse index file, usually the magic bytes and the file format version. |
| DEFAULT_OID_VERSION | back to summary |
|---|---|
| private static final int DEFAULT_OID_VERSION | |
| PackReverseIndexWriterV1 | back to summary |
|---|---|
| pack-priv PackReverseIndexWriterV1(final OutputStream dst) | |
| writeBody | back to summary |
|---|---|
| protected void writeBody(List<? extends PackedObjectInfo> objectsByIndexPos) throws IOException Implements abstract org. Doc from org. Write the body of a reverse index file, usually the forward index positions of the given objects, sorted by those objects' pack file offsets.
| |
| writeHeader | back to summary |
|---|---|
| protected void writeHeader() throws IOException Implements abstract org. Doc from org. Write the header of a reverse index file, usually the magic bytes and the file format version.
| |
| Modifier and Type | Field and Description |
|---|---|
| private List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(int
the first int to compare firstIndexPosition, int the second int to compare secondIndexPosition)Implements org. Compares the two int arguments for order. |
| private long |
| objectsByIndexPos | back to summary |
|---|---|
| private List<? extends PackedObjectInfo> objectsByIndexPos | |
| IndexPositionsByOffsetComparator | back to summary |
|---|---|
| private IndexPositionsByOffsetComparator(List<? extends PackedObjectInfo> objectsByIndexPos) | |
| compare | back to summary |
|---|---|
| public int compare(int firstIndexPosition, int secondIndexPosition) Implements org. Doc from org. Compares the two int arguments for order.
| |
| getOffset | back to summary |
|---|---|
| private long getOffset(int indexPosition) | |