chore: initialize qiming workspace repository
This commit is contained in:
7
qimingclaw/.husky/prepare-commit-msg
Normal file
7
qimingclaw/.husky/prepare-commit-msg
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
# 提交前移除 Cursor 自动添加的 Co-authored-by 行
|
||||
MSG_FILE="$1"
|
||||
[ -f "$MSG_FILE" ] || exit 0
|
||||
# 用 grep 过滤掉该行后写回,兼容 macOS/Linux
|
||||
grep -v '^Co-authored-by: Cursor <cursoragent@cursor\.com>$' "$MSG_FILE" > "${MSG_FILE}.tmp" && mv "${MSG_FILE}.tmp" "$MSG_FILE"
|
||||
exit 0
|
||||
Reference in New Issue
Block a user