Xgit v0.7.1 Xgit.Repository.InMemory View Source

Implementation of Xgit.Repository.Storage that stores content in memory.

WARNING: This is intended for testing purposes only. As the name implies, repository content is stored only in memory. When the process that implements this repository terminates, the content it stores is lost.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Start an in-memory git repository.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

start_link(opts \\ [])

View Source
start_link(opts :: Keyword.t()) :: GenServer.on_start()

Start an in-memory git repository.

Use the functions in Xgit.Repository.Storage to interact with this repository process.

Any options are passed through to GenServer.start_link/3.

Return Value

See GenServer.start_link/3.