builtin-mktree.c: use a helper function to handle one line of input
commitfe0bb5f7bce3dbcc32325c74e693a726d0c2808b
authorJunio C Hamano <gitster@pobox.com>
Sun, 10 May 2009 17:41:22 +0000 (10 10:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 10 May 2009 19:41:35 +0000 (10 12:41 -0700)
treea231d3cc1a705636d5cc3f62e8d11a4504c0f77c
parent1fdee85c8844a2cbfdf2f4c0a9c0964b78beb37e
builtin-mktree.c: use a helper function to handle one line of input

The main() function used to do the whole thing; this moves the handling of
a single input line to a separate function to make it easier to read.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-mktree.c