diff options
| author | 2026-03-26 09:17:14 +0000 | |
|---|---|---|
| committer | 2026-03-26 09:18:30 +0000 | |
| commit | 3e884f5f3d42cbc4874a04da31dde10314b0cfad (patch) | |
| tree | f5e1e325fd1a2a0801791c054010213214475d80 /commitgraph/constants.go | |
| parent | network/receivepack: Rename from receivepack (diff) | |
| signature | No signature | |
format: Move commitgraph and packfile here
Diffstat (limited to 'commitgraph/constants.go')
| -rw-r--r-- | commitgraph/constants.go | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/commitgraph/constants.go b/commitgraph/constants.go deleted file mode 100644 index 3a06a290..00000000 --- a/commitgraph/constants.go +++ /dev/null @@ -1,32 +0,0 @@ -package commitgraph - -const ( - FileSignature = 0x43475048 // "CGPH" - FileVersion = 1 -) - -const ( - ChunkOIDF = 0x4f494446 // "OIDF" - ChunkOIDL = 0x4f49444c // "OIDL" - ChunkCDAT = 0x43444154 // "CDAT" - ChunkGDA2 = 0x47444132 // "GDA2" - ChunkGDO2 = 0x47444f32 // "GDO2" - ChunkEDGE = 0x45444745 // "EDGE" - ChunkBIDX = 0x42494458 // "BIDX" - ChunkBDAT = 0x42444154 // "BDAT" - ChunkBASE = 0x42415345 // "BASE" -) - -const ( - HeaderSize = 8 - ChunkEntrySize = 12 - FanoutSize = 256 * 4 -) - -const ( - ParentNone = 0x70000000 - ParentExtraMask = 0x80000000 - ParentLastMask = 0x7fffffff - - GenerationOverflow = 0x80000000 -) |
