ref: d3eaa1808fe1aeaa316d81fcde6ebb6079a3980e
parent: c888d2b4aa51f539cc4b0bef18ca6970d6ce242e
author: Runxi Yu <me@runxiyu.org>
date: Fri Nov 28 03:00:00 EST 2025
hash: data after size This guarantees ... I guess ABI stability of where the size is, regardless of the version which may have different maxHashSize. Not too useful but I guess good practice
--- a/hash.go
+++ b/hash.go
@@ -10,8 +10,8 @@
// Hash represents a Git object ID.
type Hash struct {- data [maxHashSize]byte
size int
+ data [maxHashSize]byte
}
// hashFunc is a function that computes a hash from input data.
--
⑨