aboutsummaryrefslogtreecommitdiff
path: root/obj.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commit503f2f1bbc69be553d04c621c7ec33931cc1f57d (patch)
tree289b2ea2dc589d6ce7efc3e44966eabb6739d3f2 /obj.go
parentREADME: benmarking -> test (diff)
signature
Add a little bit more of documentation
Diffstat (limited to 'obj.go')
-rw-r--r--obj.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/obj.go b/obj.go
index 8a7eccac..b82e0403 100644
--- a/obj.go
+++ b/obj.go
@@ -38,6 +38,7 @@ const (
// Object represents a Git object.
type Object interface {
+ // ObjectType returns the object's type.
ObjectType() ObjectType
}
@@ -45,6 +46,7 @@ type Object interface {
// one read from storage.
type StoredObject interface {
Object
+ // Hash returns the object's hash.
Hash() Hash
}