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