Highlights
- Fix prompt-mode pre-commit hooks so commits cannot silently continue when confirmation is unavailable.
- Read confirmation from the controlling terminal and correctly honor
y and n without hanging or failing during terminal cleanup.
- Improve Git diff portability for special file names, renames, copies, binary patches, and CRLF output.
- Support linked worktrees and custom
core.hooksPath locations when installing hooks.
- Localize hook confirmation and terminal-error messages in Chinese and English.
- Keep overall, category, and per-file risk severity consistent.
Verification
- 296 automated tests passed.
- CI passed on Ubuntu, macOS, and Windows.
- The packed npm artifact was installed and verified in a temporary Git repository with real blocked (
n) and allowed (y) commits.
Install
npm install -g change-evidence@0.1.1