Gitex.Repo protocol

Source

Summary

decode(repo, hash, bintype)
encode(repo, obj)
get_obj(repo, hash)
put_obj(repo, bintype)
resolve_ref(repo, ref)
set_ref(repo, ref, hash)
user(repo)

Types

blob :: binary

tag :: %{tag: String.t, object: hash}

commit :: %{tree: hash, parent: hash | [hash]}

tree :: [%{name: String.t, ref: hash}]

type :: :blob | :tag | :commit | :tree

t :: term

Functions

decode(repo, hash, bintype)

Specs:

Source
encode(repo, obj)

Specs:

Source
get_obj(repo, hash)

Specs:

Source
put_obj(repo, bintype)

Specs:

Source
resolve_ref(repo, ref)

Specs:

Source
set_ref(repo, ref, hash)

Specs:

Source
user(repo)

Specs:

  • user(t) :: nil | %{name: binary, email: binary}
Source