From 3e884f5f3d42cbc4874a04da31dde10314b0cfad Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 26 Mar 2026 09:17:14 +0000 Subject: format: Move commitgraph and packfile here --- format/packfile/header.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 format/packfile/header.go (limited to 'format/packfile/header.go') diff --git a/format/packfile/header.go b/format/packfile/header.go new file mode 100644 index 00000000..bc859a55 --- /dev/null +++ b/format/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 +} -- cgit v1.3.1-10-gc9f91