Skip to main content

Module view

Module view 

Source
Expand description

View object (SPEC §4.6) - a snapshot of the mutable state of a repo.

Carries:

  • heads - current head commits (≥1, or 0 for the root View per §7.5)
  • refs - named references (branches, tags) as a map of name → RefTarget
  • remote_refs - optional per-remote named references
  • wc_commit - optional working-copy pointer

RefTargets are either Normal(Cid) or Conflicted { adds, removes }; see SPEC §4.6 and amendments.

Structs§

View
A snapshot of the repository’s mutable state at a single instant.

Enums§

RefTarget
A named reference in a View.