File tree 3 files changed +27
-19
lines changed
3 files changed +27
-19
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,26 @@ git init rename-add-symlink
222
222
git commit -m " rename foo to bar"
223
223
)
224
224
225
+ git init rename-add-same-symlink
226
+ (cd rename-add-same-symlink
227
+ touch target
228
+ ln -s target link
229
+ git add .
230
+ git commit -m " original"
231
+
232
+ git branch A
233
+ git branch B
234
+
235
+ git checkout A
236
+ git mv link link-new
237
+ git commit -m " rename link to link-new"
238
+
239
+ git checkout B
240
+ ln -s target link-new
241
+ git add link-new
242
+ git commit -m " create link-new"
243
+ )
244
+
225
245
git init rename-rename-plus-content
226
246
(cd rename-rename-plus-content
227
247
write_lines 1 2 3 4 5 > foo
@@ -993,7 +1013,7 @@ git init type-change-to-symlink
993
1013
994
1014
995
1015
996
- # TODO: Git does not detect the conflict (one turns exe off, the other turns it on), and we do exactly the same.
1016
+ baseline rename-add-same-symlink A-B A B
997
1017
baseline rename-add-exe-bit-conflict A-B A B
998
1018
baseline remove-executable-mode A-B A B
999
1019
baseline simple side-1-3-without-conflict side1 side3
Original file line number Diff line number Diff line change @@ -130,27 +130,15 @@ fn run_baseline() -> crate::Result {
130
130
actual. conflicts,
131
131
merge_info. conflicts
132
132
) ;
133
- // if case_name.starts_with("submodule-both-modify-A-B") {
134
- if false {
135
- assert ! (
136
- !did_change,
137
- "{case_name}: We can't handle submodules, so there is no index change"
138
- ) ;
139
- assert ! (
140
- actual. has_unresolved_conflicts( conflicts_like_in_git) ,
141
- "{case_name}: submodules currently result in an unresolved (unknown) conflict"
142
- ) ;
143
- } else {
144
- assert_eq ! (
145
- did_change,
146
- actual. has_unresolved_conflicts( conflicts_like_in_git) ,
147
- "{case_name}: If there is any kind of conflict, the index should have been changed"
148
- ) ;
149
- }
133
+ assert_eq ! (
134
+ did_change,
135
+ actual. has_unresolved_conflicts( conflicts_like_in_git) ,
136
+ "{case_name}: If there is any kind of conflict, the index should have been changed"
137
+ ) ;
150
138
}
151
139
152
140
assert_eq ! (
153
- actual_cases, 107 ,
141
+ actual_cases, 109 ,
154
142
"BUG: update this number, and don't forget to remove a filter in the end"
155
143
) ;
156
144
You can’t perform that action at this time.
0 commit comments