Git2. Repository
(git2_nif v0.1.0)
Copy Markdown
I provide functions for working with repositories.
Summary
Functions
I enumerate the branches of a repository.
I enumerate the branches of a repository, and may filter this set to either local or remote branches.
I open a Git repository. On success, I return {:ok, handle}.
I parse a revision string to find a single commit object.
I return the state of a repository.
Types
@type t() :: reference()
I am a handle to a Git repository.
Functions
I enumerate the branches of a repository.
@spec enumerate_branches(t(), :local | :remote | nil) :: [ %{name: String.t(), id: String.t(), type: :local | :remote} ]
I enumerate the branches of a repository, and may filter this set to either local or remote branches.
I open a Git repository. On success, I return {:ok, handle}.
I parse a revision string to find a single commit object.
I return the state of a repository.