Add object id lookup

This commit is contained in:
Carlos Martín Nieto
2013-03-02 03:27:40 +01:00
parent d62511515d
commit 9b2a053848
7 changed files with 48 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
-module(geef_commit).
-export([tree_id/1, tree/1]).
-export([tree_id/1, tree/1, id/1]).
-include("geef_records.hrl").
@@ -15,3 +15,6 @@ tree(#object{type=commit,handle=Handle}) ->
Other ->
Other
end.
id(Obj = #object{type=commit}) ->
geef_object:id(Obj).