Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2010-08-18 03:53:19 +0400
committerJunio C Hamano <gitster@pobox.com>2010-08-18 23:08:08 +0400
commitae745487ad7a4ceca0e903da6df21be2c1ebfc29 (patch)
treef3b8da751ad9bade1c551b0968b252b7af9a87b5 /merge-recursive.c
parent5601ba6574cfbd1249a6d38b72159a7d3ccf8315 (diff)
merge-recursive: Fix multiple file rename across D/F conflict
In 5a2580d (merge_recursive: Fix renames across paths below D/F conflicts 2010-07-09), detection was added for renames across paths involved in a directory<->file conflict. However, the change accidentally involved reusing an outer loop index ('i') in an inner loop, changing its values and causing a slightly different type of breakage for cases where there are multiple renames across the D/F conflict. Fix by creating a new temporary variable 'i'. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'merge-recursive.c')
-rw-r--r--merge-recursive.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/merge-recursive.c b/merge-recursive.c
index 52936c35ae..250e140355 100644
--- a/merge-recursive.c
+++ b/merge-recursive.c
@@ -1020,6 +1020,7 @@ static int process_renames(struct merge_options *o,
if (mfi.clean &&
sha_eq(mfi.sha, ren1->pair->two->sha1) &&
mfi.mode == ren1->pair->two->mode) {
+ int i;
/*
* This message is part of
* t6022 test. If you change