From e2ced7de19c85f3b246480bfacdcc934c98c08ca Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Sun, 29 Nov 2009 13:18:33 +0100 Subject: [PATCH] builtin-merge: show user-friendly error messages for fast-forward too. fadd069d03 (merge-recursive: give less scary messages when merge did not start, Sep 7 2009) introduced some friendlier error message for merge failure, but the messages were shown only for non-fast forward merges. This patch uses the same for fast-forward. Signed-off-by: Matthieu Moy Signed-off-by: Junio C Hamano --- builtin-merge.c | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin-merge.c b/builtin-merge.c index b6b84286b2..56ecc68239 100644 --- a/builtin-merge.c +++ b/builtin-merge.c @@ -650,6 +650,7 @@ static int checkout_fast_forward(unsigned char *head, unsigned char *remote) opts.verbose_update = 1; opts.merge = 1; opts.fn = twoway_merge; + opts.msgs = get_porcelain_error_msgs(); trees[nr_trees] = parse_tree_indirect(head); if (!trees[nr_trees++])