commit: move empty message checks to libgit
commitd0aaa46fd3e53801346a4cadebf398f05d79780b
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Fri, 10 Nov 2017 11:09:42 +0000 (10 11:09 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Nov 2017 18:33:26 +0000 (11 03:33 +0900)
tree1ec5d7c8d6c06a0aeac12a057754bab3448f43f5
parent60b6158886b1b502c75f12facff9df45e731112b
commit: move empty message checks to libgit

Move the functions that check for empty messages from bulitin/commit.c
to sequencer.c so they can be shared with other commands. The
functions are refactored to take an explicit cleanup mode and template
filename passed by the caller.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
sequencer.c
sequencer.h