From: Josef Weidendorfer Date: Mon, 15 Aug 2005 21:21:16 GMT Subject: Re: [PATCH] Add --signoff and --verify option to git commit. Message-ID: <200508152321.17075.Josef.Weidendorfer@gmx.de> In-Reply-To: <7vzmrmp5kw.fsf@assigned-by-dhcp.cox.net> On Saturday 13 August 2005 11:08, Junio C Hamano wrote: > Also add --verify to make sure the lines you introduced are > clean, which is more useful in commit but not very much in > format-patch as it was originally implemented, because finding > botches at format-patch time is too late. I think that verification of/commenting on commits at/before commit time is a perfect place for another hook script (or collection of verification scripts). People probably want to check a new commit on identation/coding style on a per-project manner. The hook also should be able to give warnings/hints by adding text to the commit message (e.g. "please do not use 'fgetc'" / "doublecheck quoting in system()", ...) without rejecting the commit as a whole. It could even be allowed to edit the code before commit. These verification scripts should be used per default, and git-commit should have an option to force bypassing verification. If I get some time, I can come up with a patch. Josef