Skip to content

Commit

Permalink
merge-recursive: Have process_entry() skip D/F or rename entries
Browse files Browse the repository at this point in the history
If an entry has an associated rename_df_conflict_info, skip it and allow
it to be processed by process_df_entry().

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Elijah Newren authored and Junio C Hamano committed Sep 30, 2010
1 parent 2ff739f commit 384c166
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions merge-recursive.c
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,9 @@ static int process_entry(struct merge_options *o,
unsigned char *a_sha = stage_sha(entry->stages[2].sha, a_mode);
unsigned char *b_sha = stage_sha(entry->stages[3].sha, b_mode);

if (entry->rename_df_conflict_info)
return 1; /* Such cases are handled elsewhere. */

entry->processed = 1;
if (o_sha && (!a_sha || !b_sha)) {
/* Case A: Deleted in one */
Expand Down

0 comments on commit 384c166

Please sign in to comment.