Skip to content

Commit

Permalink
builtin-merge: show user-friendly error messages for fast-forward too.
Browse files Browse the repository at this point in the history
fadd069 (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 <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Matthieu Moy authored and Junio C Hamano committed Nov 30, 2009
1 parent 264b774 commit e2ced7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin-merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++])
Expand Down

0 comments on commit e2ced7d

Please sign in to comment.