Add lookup/2 to the specific types
They proxy to geef_object:lookup/3 which looks up the object and asserts the type.
This commit is contained in:
@@ -10,8 +10,7 @@
|
||||
|
||||
-spec lookup(repo(), oid() | iolist()) -> object().
|
||||
lookup(Repo, Id) ->
|
||||
{ok, Obj = #object{type=blob}} = geef_object:lookup(Repo, Id),
|
||||
Obj.
|
||||
geef_object:lookup(Repo, Id, blob).
|
||||
|
||||
-spec id(object()) -> oid().
|
||||
id(Obj = #object{type=blob}) ->
|
||||
|
||||
Reference in New Issue
Block a user