Wrap the rest of the object modules in elixir

This commit is contained in:
Carlos Martín Nieto
2013-06-06 11:14:57 +02:00
parent f82f47c025
commit 267353ea21
8 changed files with 76 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
-module(geef_commit).
-export([tree_id/1, tree/1, id/1, lookup/2]).
-export([tree_id/1, tree/1, lookup/2]).
-include("geef_records.hrl").
@@ -18,7 +18,4 @@ tree(#geef_object{type=commit,handle=Handle}) ->
-spec lookup(pid(), geef_oid() | iolist()) -> geef_object().
lookup(Repo, Id) ->
geef_object:lookup(Repo, Id, commit).
id(Obj = #geef_object{type=commit}) ->
geef_object:id(Obj).
geef_obj:lookup(Repo, Id, commit).