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

Copy Markdown View Source

Runtime policy for repo-wide git refreshes.

The profile is deliberately cheap to build. Ambient editor features use it to avoid expensive status modes in sparse or user-overridden huge repos.

Summary

Functions

Builds the ambient git policy for git_root.

Types

size_class()

@type size_class() :: :unknown | :large | :huge

t()

@type t() :: %Minga.Git.Repo.Profile{
  size_class: size_class(),
  sparse?: boolean(),
  timeout_ms: pos_integer(),
  untracked_mode: Minga.Git.untracked_mode()
}

Functions

detect(git_root)

@spec detect(String.t()) :: t()

Builds the ambient git policy for git_root.