Add geef_commit:tree()

This commit is contained in:
Carlos Martín Nieto
2013-02-17 21:35:25 +01:00
parent 134c052f71
commit b2e366027b
6 changed files with 39 additions and 3 deletions

View File

@@ -5,8 +5,8 @@
-export([lookup/2]).
-spec lookup(repo(), oid()) -> object().
lookup(#repo{handle=Repo}, #oid{oid=Oid}) ->
case geef:object_lookup(Repo, Oid) of
lookup(Repo = #repo{handle=RepoHandle}, #oid{oid=Oid}) ->
case geef:object_lookup(RepoHandle, Oid) of
{ok, Type, Handle} ->
{ok, #object{type=Type, handle=Handle}};
Other ->