File size: 223 Bytes
d5b51d5 | 1 2 3 4 5 6 7 8 | #!/bin/sh
# Strip Cursor agent co-author trailers from commit messages.
MSG_FILE="$1"
if [ -f "$MSG_FILE" ]; then
grep -v 'cursoragent@cursor.com' "$MSG_FILE" > "$MSG_FILE.tmp" && mv "$MSG_FILE.tmp" "$MSG_FILE"
fi
exit 0
|