Re: [PATCH] commit & merge: modularize the empty message validator
- From
Christian Brabandt <cb@256bit.org>
- Date
- Jul 17, 2017, 09:08 UTC
- Message-ID
- <20170717090838.GA17826@256bit.org>
- In-Reply-To
- <xmqqr2xkxlpo.fsf@gitster.mtv.corp.google.com>
On Do, 13 Jul 2017, Junio C Hamano wrote:
Show 5 quoted lines
> I think many people know about and do use the "delete all lines" > (i.e. ":1,$d" in vi, or \M-< \C-SPC \M-> \C-w in Emacs) to abort out > of a commit or a merge. I just do not think it is likely for them > to leave Sign-off lines and remove everything else, which is more > work than to delete everything, hence my reaction.
In Vim you can also abort the commit message using :cq which exits the editor with an error code.
Best, Christian
-- Das Werk soll den Meister loben.