git-commit-tree: make it usable from other builtins
commit7b9c0a69a5f64fffb5de8b49a96f41ac35b4a84f
authorMiklos Vajna <vmiklos@frugalware.org>
Tue, 1 Jul 2008 02:37:49 +0000 (1 04:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jul 2008 02:23:00 +0000 (6 19:23 -0700)
tree8437d36713060c95c714ce8cce49d0e84ee2fa3f
parentc1fb35b98aa36ce789c60520028d95e5f9fee43c
git-commit-tree: make it usable from other builtins

Move all functionality (except option parsing) from cmd_commit_tree() to
commit_tree(), so that other builtins can use it without a child
process.

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