summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordev <dev@example>2026-11-14 00:21:57 +0000
committerdev <dev@example>2026-11-14 00:21:57 +0000
commite737f3d560de2b8172e6dd83901bc1359283303c (patch)
treea44f3190e42065212f47fc7606ad3b0a6ab6d772
parent4dfb9a5787b1554280807aaa28687f6c1a0d2db6 (diff)
downloadaccess-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--README7
1 files changed, 7 insertions, 0 deletions
diff --git a/README b/README
index f795411..b2bb0a0 100644
--- a/README
+++ b/README
@@ -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.