API Reference Gitility v#0.2.0

Copy Markdown View Source

Modules

Snapshot-first Git object queries for Elixir.

A blame result: consecutive hunks, not one record per line.

One blame hunk: a consecutive run of final lines attributed to a single commit.

Deterministic single-file, read-only Git repositories.

Pure encoder and strict positional parser for Gitility bundle format v1.

Byte-range backend over pack and index sections in one immutable bundle.

The deterministic publication summary returned by Gitility.Bundle.write/2.

Direct-reference backend backed by a pinned bundle TOC.

A byte range within one stored artifact, addressed by its storage key (a pack_key/index_key from a Gitility.PackDescriptor).

A decoded commit.

A structured diff between two snapshots (or trees).

One changed file in a diff.

One hunk of a patch-format diff.

One line of a hunk. content is raw bytes without the leading origin marker; old_line/new_line are 1-based, nil on the side where the line does not exist. no_newline is true when this is the final line on its side and that side has no trailing newline, equivalent to Git's \ No newline at end of file marker.

The normalized error type for every Gitility operation.

The result of reading one file from a snapshot.

An author or committer identity, preserved exactly as Git encoded it.

A handle to one asynchronous query.

Resource budgets for a single operation.

Object databases: where Git objects come from.

The behaviour for Elixir-backed object storage.

Reusable ExUnit conformance case for Gitility.ODB.Backend implementations.

Eagerly hydrates an immutable pack manifest into a local gix object store.

Collects the complete packable object inventory of a local repository.

Internal provider supervision tree.

The behaviour for byte-range access to a published pack store.

Reusable ExUnit conformance case for Gitility.ODB.RangeBackend modules.

Reference range backend for an atomically published local directory.

Optional Postgrex-backed range store using 1 MiB bytea chunks.

A Git object identifier: a hash algorithm plus the raw digest bytes.

A raw Git object: ID, type, and full payload bytes.

An object's type and size without its payload.

One pack in a Gitility.PackManifest: storage keys for the pack and its index, sizes for planning fetches, and the pack checksum as identity.

An atomic inventory of the packs in a remote (or bundled) pack store.

One page of a potentially large result.

Helpers for Git path bytes.

One reference: a full raw name and its target.

Reference databases: mutable names for immutable objects.

The behaviour for Elixir-backed reference resolution.

Reusable ExUnit conformance case for Gitility.RefDB.Backend modules.

Internal reference-provider supervision tree.

A reference listing query: an optional raw-byte name prefix, a page limit, and an opaque continuation cursor.

What a reference points at.

A repository is just an ODB plus an optional RefDB.

An explicit, supervisable query runtime: one bounded native worker pool.

One match from a snapshot content search.

An immutable view of one commit — the unit every semantic query takes.

Work accounting attached to every query result.

Metadata correlating one snapshot gitlink with its .gitmodules declaration.

One entry from a tree listing.