Minga.Git.Repo.StatusSnapshot (Minga v0.1.0)

Copy Markdown View Source

Cached git status entries for a tracked repository.

entry_base_path tells consumers which filesystem path the entry paths are relative to. This lets cache-only UI consumers render badges without shelling out to git.

Summary

Functions

Builds a cached status snapshot.

Types

t()

@type t() :: %Minga.Git.Repo.StatusSnapshot{
  entries: [Minga.Git.StatusEntry.t()],
  entry_base_path: String.t(),
  git_root: String.t()
}

Functions

new(git_root, entry_base_path, entries)

@spec new(String.t(), String.t(), [Minga.Git.StatusEntry.t()]) :: t()

Builds a cached status snapshot.