#!/usr/bin/env bash
# Strip Co-Authored-By lines from commit messages
set -e
COMMIT_MSG_FILE="$1"
if [[ -f "$COMMIT_MSG_FILE" ]]; then
    sed -i '/^Co-Authored-By:/Id' "$COMMIT_MSG_FILE"
fi
