git-fmt-merge-msg: make it usable from other builtins
commit0b9a969e0fbb0a09e9de931cfe27005cbfd6cb7d
authorMiklos Vajna <vmiklos@frugalware.org>
Fri, 27 Jun 2008 16:21:59 +0000 (27 18:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 Jul 2008 05:45:51 +0000 (30 22:45 -0700)
treef12d3e5c856a1242ebea94bb8cb0af8194809ecd
parente46bbcf6e89e4b1d3d8de1d20d836538ab0f0c85
git-fmt-merge-msg: make it usable from other builtins

Move all functionality (except config and option parsing) from
cmd_fmt_merge_msg() to fmt_merge_msg(), so that other builtins can use
it without a child process.

All functions have been changed to use strbufs, and now only
cmd_fmt_merge_msg() reads directly from a file / writes anything to
stdout.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fmt-merge-msg.c
builtin.h