git-commit: set GIT_EDITOR=: if editor will not be launched
authorPaolo Bonzini <bonzini@gnu.org>
Tue, 5 Feb 2008 10:01:45 +0000 (11:01 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Feb 2008 10:26:02 +0000 (02:26 -0800)
commit406400ce4f69e79b544dd3539a71b85d99331820
treeba11111ec74340689bc94ec0689dd628852dfdce
parent3473f3035d04957ca24d3ccc232f4263b26d6bb8
git-commit: set GIT_EDITOR=: if editor will not be launched

This is a preparatory patch that provides a simple way for the future
prepare-commit-msg hook to discover if the editor will be launched.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/hooks.txt
builtin-commit.c