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:
@@ -44,7 +44,7 @@ ref_test(Repo) ->
|
||||
odb_write_test(Repo),
|
||||
Id = geef_oid:parse("c300118399f01fe52b316061b5d32beb27e0adfd"),
|
||||
{ok, _} = geef_ref:create(Repo, "refs/heads/branch", Id, true),
|
||||
{ok, _} = geef_ref:create(Repo, "refs/heads/other", "refs/heads/branch", true),
|
||||
{ok, _} = geef_ref:create_symbolic(Repo, "refs/heads/other", "refs/heads/branch", true),
|
||||
{ok, Ref0} = geef_ref:lookup(Repo, "refs/heads/branch"),
|
||||
{ok, Ref1} = geef_ref:lookup(Repo, "refs/heads/other"),
|
||||
{ok, Ref2} = geef_ref:resolve(Ref0),
|
||||
@@ -59,7 +59,7 @@ ref_iter_test(Repo) ->
|
||||
odb_write_test(Repo),
|
||||
Id = geef_oid:parse("c300118399f01fe52b316061b5d32beb27e0adfd"),
|
||||
{ok, _} = geef_ref:create(Repo, "refs/heads/branch", Id, true),
|
||||
{ok, _} = geef_ref:create(Repo, "refs/heads/other", "refs/heads/branch", true),
|
||||
{ok, _} = geef_ref:create_symbolic(Repo, "refs/heads/other", "refs/heads/branch", true),
|
||||
{ok, Iter0} = geef_ref:iterator(Repo),
|
||||
{ok, Ref0} = geef_ref:next(Iter0),
|
||||
{ok, Ref1} = geef_ref:next(Iter0),
|
||||
|
||||
Reference in New Issue
Block a user