# `HistoryGroup.commit`

> Contract 2.0.0 · package sha256 `a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e` · generated from `configurator-runtime.d.ts` by `services/onsite-scripter/scripts/build-contract-docs.mjs`; edit the source, not this file.

Method of [`HistoryGroup`](HistoryGroup.md) · stable · since 2.0.0 · called as `session.history.group(options).commit`

```ts
commit(): void;
```

Ends the group: writes called from now on are not in it; writes called while it was open still join its step when they commit, unless history changed first. Idempotent, immediate. Groups never roll back.

## Generic-API test (spec 3.1)

| Rule | Result |
| --- | --- |
| 1. Neutral name | pass: `commit` names no product |
| 2. A precedent | pass (through its owner [`HistoryGroup`](HistoryGroup.md)): [Unity Undo.CollapseUndoOperations](https://docs.unity3d.com/ScriptReference/Undo.CollapseUndoOperations.html) (row `X7`) |
| 3. Two apps, or labs | pass: 6 apps (ledger: app-04c2774145, app-37356bf09f, app-4762caacdc, app-bcb7ef21da, app-f3598fad77; fleet cross-check: app-04c2774145, app-37356bf09f, app-4762caacdc, app-510d750508, app-bcb7ef21da, app-f3598fad77) |
| 4. The cheaper fix first | decided per need in Appendix B: rows `X7` (through its owner [`HistoryGroup`](HistoryGroup.md)) at tier stable (a member only where no rule, data, asset or app code serves the need) |
