Commit 12d3cc0
authored
Add auto-regen state.md pre-commit hook + idempotent generator write (SAN-821) (#89)
Mirror the sanna-ts state.md drift control into sanna-repo: a local
pre-commit hook regenerates docs/state.md and fails the commit if it was
stale - a local mirror of the CI "Validate state doc" --check gate. Make
the generator's write mode idempotent (skip when only the timestamp would
change, reusing _comparable) so the hook does not churn docs/state.md on
every commit.1 parent 45a97b2 commit 12d3cc0
2 files changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
232 | 237 | | |
233 | 238 | | |
234 | 239 | | |
| |||
0 commit comments