#! /bin/sh

if [ -z $1 ]
then
    exit 1
fi

if [ -d "$1/.git" ]
then
	git --no-pager log --format="%ai %aN %n%n%x09* %s%d%n" > ChangeLog
fi

exit 0
