Skip to content

rename -verify -> -hasheq (#109) - #429

Merged
helly25 merged 1 commit into
mainfrom
fix/109-rename-hasheq
Aug 9, 2026
Merged

rename -verify -> -hasheq (#109)#429
helly25 merged 1 commit into
mainfrom
fix/109-rename-hasheq

Conversation

@helly25

@helly25 helly25 commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Follow-up to #428: rename the hash-verification predicate -verify -> -hasheq.

-verify names nothing about what it checks (permissions? signature? existence?), and in xff's own vocabulary "match" already means glob/regex/fuzzy matching (-name, -regex, -content). The primary does a strict byte-equality of the digest string, so -hasheq (hash equals) is the accurate name and sits naturally beside the -hash action and {hash} field.

xff . -type f -hasheq {def.SUMS}     # files matching their expected digest
xff . -type f ! -hasheq {def.SUMS}   # drift / corruption

Renames the registry descriptor, EvalHasheq, the dispatch entry, ValidateHashArgs, the bashtest (verify_test.sh -> hasheq_test.sh), and the docs (XFF.md / CHANGELOG / TODO). No behavior change.

bazel test //xff/... --config=clang green; clang-tidy + pre-commit clean.

"verify" names nothing about what is checked; in xff's vocabulary "match"
already means glob/regex/fuzzy matching. The primary does a strict byte-equality
of the digest string, so -hasheq (hash equals) is the accurate name, consistent
with the -hash action and {hash} field. Renames the descriptor, EvalHasheq, the
dispatch entry, ValidateHashArgs, the bashtest (hasheq_test.sh), and the docs.
@helly25
helly25 enabled auto-merge (squash) August 9, 2026 21:36
@helly25
helly25 merged commit 83cd3a6 into main Aug 9, 2026
10 checks passed
@helly25
helly25 deleted the fix/109-rename-hasheq branch August 9, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant