SkillPedia Skills Encyclopedia
中文 EN

技能 2026-05-13 00:27 UTC

evanflowv4.7

版本【4.7】由提交人 hobostay 提交,主要更新类型为:功能特性新增与扩展。提交说明:fix: improve git hook safety — fail-closed on missing jq, catch -- separator variants (#2)。为项目引入了新的能力与模块支持。

hobostay c9ae21f evanklem/evanflow

Commit提交信息原文

fix: improve git hook safety — fail-closed on missing jq, catch -- separator variants (#2)

Two safety improvements to block-dangerous-git.sh:

1. Fail-closed when jq is missing: previously the hook silently allowed
   all commands if jq was not installed. Now it blocks commands with a
   clear error message instead.

2. Catch `--` separator variants: `git checkout -- .` and `git restore -- .`
   are common alternatives to discard all working directory changes but were
   not blocked by the existing patterns. Added patterns to catch these.

Also removed the redundant `git clean -fd` pattern since `git clean -f`
already matches it as a substring.

Co-authored-by: Test User <test@example.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>