Skip to content

Commit

Permalink
Revert "merge-ort: ignore the directory rename split conflict for now"
Browse files Browse the repository at this point in the history
This reverts commit 5ced7c3, which was
put in place as a temporary measure to avoid optimizations unstably
erroring out on no destination having a majority of the necessary
renames for directories that had no new files and thus no need for
directory rename detection anyway.  Now that optimizations are in place
to prevent us from trying to compute directory rename count computations
for directories that do not need it, we can undo this temporary measure.

Signed-off-by: Elijah Newren <newren@gmail.com>
  • Loading branch information
newren committed Mar 15, 2021
1 parent 495c109 commit d80843e
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions merge-ort.c
Original file line number Diff line number Diff line change
Expand Up @@ -1562,18 +1562,7 @@ static void get_provisional_directory_renames(struct merge_options *opt,
"no destination getting a majority of the "
"files."),
source_dir);
/*
* We should mark this as unclean IF something attempts
* to use this rename. We do not yet have the logic
* in place to detect if this directory rename is being
* used, and optimizations that reduce the number of
* renames cause this to falsely trigger. For now,
* just disable it, causing t6423 testcase 2a to break.
* We'll later fix the detection, and when we do we
* will re-enable setting *clean to 0 (and thereby fix
* t6423 testcase 2a).
*/
/* *clean = 0; */
*clean = 0;
} else {
strmap_put(&renames->dir_renames[side],
source_dir, (void*)best);
Expand Down

0 comments on commit d80843e

Please sign in to comment.