diff options
| author | dev <dev@example> | 2026-11-14 00:21:57 +0000 |
|---|---|---|
| committer | dev <dev@example> | 2026-11-14 00:21:57 +0000 |
| commit | e737f3d560de2b8172e6dd83901bc1359283303c (patch) | |
| tree | a44f3190e42065212f47fc7606ad3b0a6ab6d772 | |
| parent | 4dfb9a5787b1554280807aaa28687f6c1a0d2db6 (diff) | |
| download | access-control-e737f3d560de2b8172e6dd83901bc1359283303c.tar.gz access-control-e737f3d560de2b8172e6dd83901bc1359283303c.zip | |
README: the two questions the hook asks git, and how they are tested without git
| -rw-r--r-- | README | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -257,6 +257,13 @@ runs anywhere a compiler does, and it tests the real binary rather than a model of it: argument parsing, exit codes, messages, and the editing commands writing files. +Two facts do not come out of the line git passes, and the hook asks git for +them: which branch `HEAD` is, and whether `old` is an ancestor of `new`. Those +are covered with a stand-in named `git` in `PATH`, which answers to order and +lets the asking be tested without git - including the case where git is not +there at all, where the hook has to fail toward denying rather than toward +guessing. + `make clean && make sanitizer` runs both suites under AddressSanitizer and UBSan. Everything frees what it reads, which matters only because it keeps that run empty. |
