Repository navigation
Commit 95c6d9a
test(gix): keep hook lookup and execution on Git
GixPython 0.1.0 exposes no hook lookup or execution API. The previous fast path
read configuration through Gix but used Python `os.stat()` to declare an absent
hook successful, so it was not a Gix implementation. Retain the existing CLI
path for every requested hook and document the required native binding as
`GIX-23`.
The missing-hook probe now deliberately retains one CLI launch per invocation
(zero reduction), replacing the former zero-call Python shortcut. Tests assert
six actual calls for three absent hooks across ordinary and linked worktrees,
retain pre-dispatch NUL rejection, and check existing/configured hook fallback.
The native handler and its special `GIT_EDITOR` config permission are removed.
Validation: Gix index, backend and safety tests passed first (236 passed,
2 skipped in 34.38s), then CLI (166 passed, 3 skipped in 28.61s). Ruff
lint/format and `git diff --check` passed. Native mutation failures continue
to be protected from CLI retries by the existing dispatch contract.1 parent 2c33be7 commit 95c6d9a
2 files changed
Lines changed: 32 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
| 456 | + | |
455 | 457 | | |
456 | 458 | | |
457 | 459 | | |
| |||
512 | 514 | | |
513 | 515 | | |
514 | 516 | | |
515 | | - | |
| 517 | + | |
516 | 518 | | |
517 | 519 | | |
518 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
311 | 339 | | |
312 | 340 | | |
313 | 341 | | |
| |||
0 commit comments