git_policy_cli/commit/mod.rs
1//! What:
2//! The wrapper's commit path:
3//! arguments,
4//! preparation,
5//! convergence,
6//! conclusion and timing.
7//! Why:
8//! A commit is the central transaction of the wrapper.
9//!
10//! In TS you'd write (pseudocode):
11//! ```ts
12//! // commit/index.ts: one `export * from './file'` per module below.
13//! ```
14
15/// Pure core of the index-against-`HEAD` check.
16pub mod rule_commit_index;
17
18/// Pure decision of the commit-only transform.
19pub mod rule_commit_only;
20
21/// User-facing diagnostics of the commit-only transform.
22pub mod rule_commit_only_message;
23
24/// Pure core of the merge,
25/// cherry-pick and revert conclusion check.
26pub mod rule_commit_sequencer;
27
28/// Slice 6: writes one corrected file into the private commit index as a blob and an index entry.
29pub mod private_index_stage;
30
31/// Slice 6: the commit path's bounded policy convergence over the private index.
32pub mod commit_convergence;
33
34/// The commit transaction in the incumbent's order, up to the settled policies.
35pub mod commit_transaction;
36
37/// The conclusion of a settled commit transaction: preparation, landing and post-landing completion.
38pub mod commit_conclusion;
39
40/// The normalization-only transaction for a correction that removed every change.
41pub mod commit_no_change;
42
43/// The finding for a staged deletion that an explicit-path commit cannot record.
44pub mod commit_staged_additions;
45
46pub mod commit_staged_deletions;
47
48/// The `git commit` command: the transaction, the settled events, the post-commit gate and the backup.
49pub mod commit_command;
50
51/// Rule facts from the real repository with candidates read from the private index.
52pub mod commit_facts;
53
54/// The worktree completion records of selected corrections and of hook changes.
55pub mod commit_worktree_records;
56
57/// The record of where one wrapped commit spent its time,
58/// appended beside the discard audit.
59pub mod commit_timing;
60
61/// Native conclusion cleanup reproduced in the owning worktree.
62pub mod conclusion_cleanup;
63
64/// The invocation capture:
65/// repository layout, symbolic `HEAD`, conclusion kind, ref backend and base.
66pub mod capture_invocation;
67
68/// The private index and object store a commit's preparation selects, and the Git request that carries them.
69pub mod private_index_request;
70
71/// The shadow conclusion copies at preparation.
72pub mod conclusion_copy;
73
74/// Argument transforms of native preparation: normalisation, global split, `-a` removal and private arguments.
75pub mod commit_args;
76
77/// The private commit index: copies, selection modes, pathspec files and listings.
78pub mod commit_index;
79
80/// Native `git commit` in the shadow, the prepared commit read back and `prepared.json`.
81pub mod commit_preparation;
82
83/// The post-commit gate over a landed commit: its events, its blocking and the backup it allows.
84pub mod post_commit;