From 503f2f1bbc69be553d04c621c7ec33931cc1f57d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 16 Nov 2025 00:00:00 +0000 Subject: Add a little bit more of documentation --- obj.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'obj.go') 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 } -- cgit v1.3.1-10-gc9f91