#!/bin/sh
# GPTComet pre-commit hook

# Run GPTComet commit
gptcomet generate commit

# If GPTComet commit was successful, exit with 0
if [ $? -eq 0 ]; then
    exit 0
else
    echo "GPTComet commit failed. Please review your changes and try again."
    exit 1
fi
