gstack/careful/bin
jacob-wang 5dacc814b8 fix(careful): skip false positives in text-output command segments
/careful hook was triggering on patterns inside git commit -m messages,
echo arguments, and other text-output commands — even though those strings
are not executed as destructive operations.

Split command on shell operators (&&, ||, ;) and skip segments that are
purely text-output commands (git commit -m, echo, printf, cat). Only
check the remaining executable segments for destructive patterns.

Fixes #1060.
2026-04-21 05:04:19 +08:00
..
check-careful.sh fix(careful): skip false positives in text-output command segments 2026-04-21 05:04:19 +08:00