summaryrefslogtreecommitdiff
path: root/merge-ort.c
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2021-03-20 00:03:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-03-20 19:35:40 (GMT)
commit41376b58e6332796343a76b222334901207065ae (patch)
tree51566ddb09091da2efe8a50f5c1be172ebe4d878 /merge-ort.c
parent816147e7bab0c7e9c3a578ce166c55d5f7a64a8a (diff)
downloadgit-41376b58e6332796343a76b222334901207065ae.zip
git-41376b58e6332796343a76b222334901207065ae.tar.gz
git-41376b58e6332796343a76b222334901207065ae.tar.bz2
Revert "merge-ort: ignore the directory rename split conflict for now"
This reverts commit 5ced7c3da009090c5a926e3123a71314c7f28d42, 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> Reviewed-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'merge-ort.c')
-rw-r--r--merge-ort.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/merge-ort.c b/merge-ort.c
index e8f1a43..8258d3f 100644
--- a/merge-ort.c
+++ b/merge-ort.c
@@ -1636,18 +1636,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);