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:
committed by
Junio C Hamano
parent
e935e62a0f
commit
dc1166e685
@ -705,7 +705,7 @@ int checkout_fast_forward(const unsigned char *head, const unsigned char *remote
|
||||
opts.merge = 1;
|
||||
opts.fn = twoway_merge;
|
||||
opts.show_all_errors = 1;
|
||||
set_porcelain_error_msgs(opts.msgs, "merge");
|
||||
setup_unpack_trees_porcelain(opts.msgs, "merge");
|
||||
|
||||
trees[nr_trees] = parse_tree_indirect(head);
|
||||
if (!trees[nr_trees++])
|
||||
|
||||
Reference in New Issue
Block a user