Allow getting a tree entry by position

This commit is contained in:
Carlos Martín Nieto
2013-06-12 02:34:53 +02:00
parent bd44d3f6b0
commit 328b2c4b4b
6 changed files with 57 additions and 20 deletions

View File

@@ -96,6 +96,10 @@ commit_tree(_Handle) ->
tree_bypath(_TreeHandle, _Path) ->
nif_error(?LINE).
-spec tree_nth(term, non_neg_integer()) -> term().
tree_nth(_TreeHandle, _Nth) ->
?NIF_FN.
-spec blob_size(term) -> {ok, integer()} | error.
blob_size(_ObjHandle) ->
nif_error(?LINE).