Skip to main content

Module commit

Module commit 

Source
Expand description

NAP Commit — the history primitive.

A commit records a point-in-time snapshot of a manifest, plus patch metadata describing what changed. This is Option C from the design requirements: Snapshot + Patch Metadata.

  • The VCS (Git) stores the full snapshot (tree).
  • The commit object stores change descriptions (patches) for efficient audit/provenance without requiring full diff reconstruction.

Commits are NOT stored inside the manifest. The manifest stores only head — a pointer to the latest commit hash.

Structs§

Change
A single change within a commit.
Commit
A NAP commit — snapshot + patch metadata.

Enums§

ChangeOp
The type of change operation.