X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unpack-trees.c;h=157d5d001fe3014def96e3660df7ee5b1b98c275;hb=aa437791d8b3d5a163777d1cabd1f299654ce712;hp=48d862d3b478875c3747bdb39a8cba0068300e97;hpb=05c1da2f5e7a5c0d2bbd1154bbb6c5cc9cb2b17f;p=git.git diff --git a/unpack-trees.c b/unpack-trees.c index 48d862d3b..157d5d001 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@ -895,7 +895,7 @@ int threeway_merge(struct cache_entry **stages, struct unpack_trees_options *o) * Two-way merge. * * The rule is to "carry forward" what is in the index without losing - * information across a "fast forward", favoring a successful merge + * information across a "fast-forward", favoring a successful merge * over a merge failure when it makes sense. For details of the * "carry forward" rule, please see . * @@ -999,7 +999,7 @@ int oneway_merge(struct cache_entry **src, struct unpack_trees_options *o) return error("Cannot do a oneway merge of %d trees", o->merge_size); - if (!a) + if (!a || a == o->df_conflict_entry) return deleted_entry(old, old, o); if (old && same(old, a)) {