Add geef_commit:tree_id

This commit is contained in:
Carlos Martín Nieto
2013-02-17 21:25:32 +01:00
parent d71c6ff702
commit 6d34f99520
6 changed files with 47 additions and 2 deletions

9
src/geef_commit.erl Normal file
View File

@@ -0,0 +1,9 @@
-module(geef_commit).
-export([tree_id/1]).
-include("geef_records.hrl").
-spec tree_id(object()) -> oid().
tree_id(#object{type=commit,handle=Handle}) ->
Oid = geef:commit_tree_id(Handle),
#oid{oid=Oid}.