Browse Source

rerere: handle conflicts with multiple stage #1 entries

A conflicted index can have multiple stage #1 entries when dealing
with a criss-cross merge and using the "resolve" merge strategy.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Junio C Hamano 10 years ago
parent
commit
5eda906b28
  1. 2
      rerere.c

2
rerere.c

@ -369,7 +369,7 @@ static int check_one_conflict(int i, int *type)
} }


*type = PUNTED; *type = PUNTED;
if (ce_stage(e) == 1) while (ce_stage(active_cache[i]) == 1)
i++; i++;


/* Only handle regular files with both stages #2 and #3 */ /* Only handle regular files with both stages #2 and #3 */

Loading…
Cancel
Save