Re: [PATCH] Check for -amend as a common wrong usage of --amend.
On Thu, Jan 24, 2008 at 07:52:26PM +0100, Pascal Obry wrote:
Show 8 quoted lines
> Johannes Schindelin a écrit :
> >That is ugly. In a source file which is by no means specific to
> >git-commit, you cannot possibly mean to check for "amend".
>
> Agreed :( I'll try to come with something better.
>
> Pascal.
>
Would this be better handled by a commit-msg hook. E.g.:
test "$(cat $1)" = "end" && {
echo >&2 Commit message is \"end\", possible mis-type of --amend
echo >&2 Use --no-verify to really commit with this commit message
exit 1
}