Re: [PATCH] Add --signoff and --verify option to git commit.
- From
Junio C Hamano <junkio@cox.net>
- Date
- Aug 16, 2005, 00:13 UTC
- Message-ID
- <7v3bpavivh.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <200508152321.17075.Josef.Weidendorfer@gmx.de>
Josef Weidendorfer <Josef.Weidendorfer@gmx.de> writes:
> These verification scripts should be used per default, and git-commit should > have an option to force bypassing verification.
I agree that it would be a good place to do a hook. Also it may not be a bad idea, if you volunteer to come up with a patch, to look at an earlier thread that talks about commit message templates and think about how these things should mesh together.
Bypassing can already be done by not giving '-v', so I do not think you need to make things more complicated than necessary. You can first try with a '-v', examine what it complains about, fix only what are applicable to your change, try with '-v' again to make sure the only complaints are from false positives, and then you commit without '-v', bypassing the check.