diff options
| author | 2026-06-11 07:41:43 +0000 | |
|---|---|---|
| committer | 2026-06-11 07:41:43 +0000 | |
| commit | 06cbf10a576f8d8a33f95c1b9dfb44a9e6f7e330 (patch) | |
| tree | b9002c25c22455c15aab43341c51babb301eeb47 /object | |
| parent | internal/format/packfile: OFS distances probably just belong to packfile (diff) | |
object/id: Export MaxObjectIDSize
Diffstat (limited to 'object')
| -rw-r--r-- | object/id/object_format_details.go | 4 | ||||
| -rw-r--r-- | object/id/object_format_ops.go | 2 | ||||
| -rw-r--r-- | object/id/object_id.go | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/object/id/object_format_details.go b/object/id/object_format_details.go index d0278602..4dad5871 100644 --- a/object/id/object_format_details.go +++ b/object/id/object_format_details.go @@ -50,8 +50,8 @@ var objectFormatTable = [...]objectFormatDetails{ }, } -// maxObjectIDSize MUST be >= the largest supported object format size. -const maxObjectIDSize = sha256.Size +// MaxObjectIDSize MUST be >= the largest supported object format size. +const MaxObjectIDSize = sha256.Size var ( //nolint:gochecknoglobals diff --git a/object/id/object_format_ops.go b/object/id/object_format_ops.go index 51bcae82..3e15b157 100644 --- a/object/id/object_format_ops.go +++ b/object/id/object_format_ops.go @@ -83,6 +83,6 @@ func (objectFormat ObjectFormat) Sum(data []byte) ObjectID { func (objectFormat ObjectFormat) Zero() ObjectID { return ObjectID{ objectFormat: objectFormat, - data: [maxObjectIDSize]byte{}, + data: [MaxObjectIDSize]byte{}, } } diff --git a/object/id/object_id.go b/object/id/object_id.go index 926142ef..1171504d 100644 --- a/object/id/object_id.go +++ b/object/id/object_id.go @@ -5,5 +5,5 @@ package id //nolint:recvcheck type ObjectID struct { objectFormat ObjectFormat - data [maxObjectIDSize]byte + data [MaxObjectIDSize]byte } |
