From: Charles Bailey Date: Thu, 24 Jan 2008 19:25:32 GMT Subject: Re: [PATCH] Check for -amend as a common wrong usage of --amend. Message-ID: <20080124192532.GA3389@hashpling.org> In-Reply-To: <4798DE6A.1050201@obry.net> On Thu, Jan 24, 2008 at 07:52:26PM +0100, Pascal Obry wrote: > 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 }