#!/usr/bin/env bash
# Agents only: a commit made inside a Claude Code session carries the
# co-author line, so nobody has to remember it on every commit. A person's own
# commit — no CLAUDECODE in the environment — is left exactly as written.
#
# Enabled per clone with `git config core.hooksPath tools/git-hooks`.
||
msg=""
source=""
# A merge or squash message is git's own, and an amend keeps what it had.
trailer="Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>"
&&