Move set_porcelain_error_msgs to unpack-trees.c and rename it

The function is currently dealing only with error messages, but the
intent of calling it is really to notify the unpack-tree mechanics that
it is running in porcelain mode.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Matthieu Moy
2010-09-02 13:57:33 +02:00
committed by Junio C Hamano
parent e935e62a0f
commit dc1166e685
6 changed files with 54 additions and 54 deletions

View File

@ -373,7 +373,7 @@ static int merge_working_tree(struct checkout_opts *opts,
topts.src_index = &the_index;
topts.dst_index = &the_index;
set_porcelain_error_msgs(topts.msgs, "checkout");
setup_unpack_trees_porcelain(topts.msgs, "checkout");
refresh_cache(REFRESH_QUIET);