Get rid of the tagged OID

This means we no longer accept any iolist in some of the functions,
but we might bring it back later.

There is also a new function, geef_ref:create_symbolic() to create
symbolic references, since we can no longer differentiate between a
name and an OID.
This commit is contained in:
Carlos Martín Nieto
2013-09-03 20:26:57 +02:00
parent a400d3ca85
commit 0d24afb089
18 changed files with 58 additions and 138 deletions

View File

@@ -40,7 +40,7 @@ repository_discover(_Path) ->
reference_list(_Repo) ->
nif_error(?LINE).
-spec reference_create(term(), iolist(), geef_ref:type(), binary(), boolean()) -> ok | {error, term()}.
-spec reference_create(term(), iolist(), geef_ref:type(), iolist() | geef_oid:oid(), boolean()) -> ok | {error, term()}.
reference_create(_Repo, _Refname, _Type, _Target, _Force) ->
?NIF_FN.
@@ -62,7 +62,7 @@ reference_iterator(_Repo, _Regexp) ->
reference_next(_Handle) ->
nif_error(?LINE).
-spec reference_resolve(term(), binary()) -> {ok, geef_ref:type(), binary()} | {error, term()}.
-spec reference_resolve(term(), binary()) -> {ok, binary(), binary()} | {error, term()}.
reference_resolve(_RepoHandle, _Name) ->
nif_error(?LINE).