summaryrefslogtreecommitdiff
path: root/builtin/checkout.c
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2010-09-02 11:57:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-09-03 16:31:28 (GMT)
commitdc1166e685dc54946ea4600e962e56a965962ec2 (patch)
tree32c6807e0344a44b108fa3382278af0f41b51ea7 /builtin/checkout.c
parente935e62a0fd26ff1f29a98a4ca8fa693f42357a2 (diff)
downloadgit-dc1166e685dc54946ea4600e962e56a965962ec2.zip
git-dc1166e685dc54946ea4600e962e56a965962ec2.tar.gz
git-dc1166e685dc54946ea4600e962e56a965962ec2.tar.bz2
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>
Diffstat (limited to 'builtin/checkout.c')
-rw-r--r--builtin/checkout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 894bb84..00cd164 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -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);