git-commit: Refactor creation of log message.
authorPaolo Bonzini <bonzini@gnu.org>
Tue, 5 Feb 2008 10:01:46 +0000 (11:01 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Feb 2008 10:26:02 +0000 (02:26 -0800)
commitec84bd000a89e657b36136ec927144cd13f26079
tree996093de7b6c86b29b6c16efaf04f4a027bf97fc
parent406400ce4f69e79b544dd3539a71b85d99331820
git-commit: Refactor creation of log message.

This patch moves the code of run_commit, up to writing the trees, editing
the message and running the commit-msg hook to prepare_log_message.  It also
renames the latter to prepare_to_commit.

This simplifies a little the code for the next patch.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c
t/t7502-commit.sh