aboutsummaryrefslogtreecommitdiff
path: root/format/commitgraph/constants.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-10 13:30:48 +0800
committerGravatar Runxi Yu2026-03-10 13:30:48 +0800
commit73e602a5c2c766caba59948e91c11122653705ec (patch)
tree57951a4275dd90c2b3953e5b4bf3c9a7bd09b84a /format/commitgraph/constants.go
parent*: Move sideband64k and pktline to protocol/ (diff)
signatureNo signature
commitgraph: Move out of format/
Diffstat (limited to 'format/commitgraph/constants.go')
-rw-r--r--format/commitgraph/constants.go32
1 files changed, 0 insertions, 32 deletions
diff --git a/format/commitgraph/constants.go b/format/commitgraph/constants.go
deleted file mode 100644
index 3a06a290..00000000
--- a/format/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
-)