#!/bin/bash
# Reject commits with Claude co-author attribution
if grep -qi 'Co-Authored-By:.*Claude\|Co-Authored-By:.*anthropic\|Signed-off-by:.*anthropic\|Signed-off-by:.*Claude' "$1"; then
    echo "ERROR: commit message contains Claude/Anthropic attribution."
    echo "Remove any Co-Authored-By or Signed-off-by lines referencing Claude."
    exit 1
fi
