diff options
| author | 2026-03-12 10:01:32 +0800 | |
|---|---|---|
| committer | 2026-03-12 10:01:32 +0800 | |
| commit | f74018c19970d11a7ba0c89e581cb9f86c0d3c14 (patch) | |
| tree | 9787292fb089641ffb9f6bc91cfb92fc97e8f833 /packfile/header.go | |
| parent | refstore: More fixes on ResolveToDetached (diff) | |
| signature | No signature | |
packfile: Split to many files
Diffstat (limited to 'packfile/header.go')
| -rw-r--r-- | packfile/header.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packfile/header.go b/packfile/header.go new file mode 100644 index 00000000..bc859a55 --- /dev/null +++ b/packfile/header.go @@ -0,0 +1,9 @@ +package packfile + +// Signature is the 4-byte "PACK" magic at the start of pack files. +const Signature = 0x5041434b + +// VersionSupported reports whether one pack version is supported. +func VersionSupported(version uint32) bool { + return version == 2 || version == 3 +} |
