Gitility.ODB.PackInventory (Gitility v0.3.0)

Copy Markdown View Source

Collects the complete packable object inventory of a local repository.

Collection follows objects/info/alternates transitively so callers do not publish stores that omit borrowed objects. A referenced alternate objects directory that is missing is returned as the loud {:alternate_objects_directory_missing, directory} error.

Summary

Types

pair()

@type pair() :: {Path.t(), Path.t()}

Functions

collect(repository, staging, opts \\ [])

@spec collect(Path.t(), Path.t(), keyword()) :: {:ok, [pair()]} | {:error, term()}

git_directory(repository)

@spec git_directory(Path.t()) :: {:ok, Path.t()} | {:error, term()}