Download scripts/git-hooks/prepare-commit-msg from waghelad/morphsql: direct link, hf CLI and curl.
- Browser
- Download file 635 Bytes
-
https://huggingface.co/spaces/waghelad/morphsql/resolve/main/scripts/git-hooks/prepare-commit-msg
- Command line
-
hf download hf://spaces/waghelad/morphsql/scripts/git-hooks/prepare-commit-msg
-
curl -L -o prepare-commit-msg https://huggingface.co/spaces/waghelad/morphsql/resolve/main/scripts/git-hooks/prepare-commit-msg
635 Bytes
| # Strip Cursor/agent attribution trailers so commits stay under the human author only. | |
| MSG_FILE="$1" | |
| [ -n "$MSG_FILE" ] && [ -f "$MSG_FILE" ] || exit 0 | |
| # macOS/BSD sed | |
| if sed --version >/dev/null 2>&1; then | |
| sed -i -e '/^Co-authored-by: Cursor <cursoragent@cursor\.com>$/d' \ | |
| -e '/^Made-with: Cursor$/d' \ | |
| -e '/^Co-authored-by:.*cursoragent@cursor\.com.*$/d' \ | |
| "$MSG_FILE" | |
| else | |
| sed -i '' -e '/^Co-authored-by: Cursor <cursoragent@cursor\.com>$/d' \ | |
| -e '/^Made-with: Cursor$/d' \ | |
| -e '/^Co-authored-by:.*cursoragent@cursor\.com.*$/d' \ | |
| "$MSG_FILE" | |
| fi | |