@@ -3098,7 +3098,7 @@ static int handle_content_merge(struct merge_options *opt,
3098
3098
struct object_id * o_oid , int o_mode ,
3099
3099
struct object_id * a_oid , int a_mode ,
3100
3100
struct object_id * b_oid , int b_mode ,
3101
- struct rename_conflict_info * rename_conflict_info )
3101
+ struct rename_conflict_info * ci )
3102
3102
{
3103
3103
const char * reason = _ ("content" );
3104
3104
const char * path1 = NULL , * path2 = NULL ;
@@ -3118,17 +3118,17 @@ static int handle_content_merge(struct merge_options *opt,
3118
3118
oidcpy (& b .oid , b_oid );
3119
3119
b .mode = b_mode ;
3120
3120
3121
- if (rename_conflict_info ) {
3122
- struct diff_filepair * pair1 = rename_conflict_info -> pair1 ;
3121
+ if (ci ) {
3122
+ struct diff_filepair * pair1 = ci -> pair1 ;
3123
3123
3124
- path1 = (opt -> branch1 == rename_conflict_info -> branch1 ) ?
3124
+ path1 = (opt -> branch1 == ci -> branch1 ) ?
3125
3125
pair1 -> two -> path : pair1 -> one -> path ;
3126
- /* If rename_conflict_info ->pair2 != NULL, we are in
3126
+ /* If ci ->pair2 != NULL, we are in
3127
3127
* RENAME_ONE_FILE_TO_ONE case. Otherwise, we have a
3128
3128
* normal rename.
3129
3129
*/
3130
- path2 = (rename_conflict_info -> pair2 ||
3131
- opt -> branch2 == rename_conflict_info -> branch1 ) ?
3130
+ path2 = (ci -> pair2 ||
3131
+ opt -> branch2 == ci -> branch1 ) ?
3132
3132
pair1 -> two -> path : pair1 -> one -> path ;
3133
3133
one .path = pair1 -> one -> path ;
3134
3134
a .path = (char * )path1 ;
@@ -3180,7 +3180,7 @@ static int handle_content_merge(struct merge_options *opt,
3180
3180
reason = _ ("submodule" );
3181
3181
output (opt , 1 , _ ("CONFLICT (%s): Merge conflict in %s" ),
3182
3182
reason , path );
3183
- if (rename_conflict_info && !df_conflict_remains )
3183
+ if (ci && !df_conflict_remains )
3184
3184
if (update_stages (opt , path , & one , & a , & b ))
3185
3185
return -1 ;
3186
3186
}
@@ -3206,7 +3206,7 @@ static int handle_content_merge(struct merge_options *opt,
3206
3206
}
3207
3207
3208
3208
}
3209
- new_path = unique_path (opt , path , rename_conflict_info -> branch1 );
3209
+ new_path = unique_path (opt , path , ci -> branch1 );
3210
3210
if (is_dirty ) {
3211
3211
output (opt , 1 , _ ("Refusing to lose dirty file at %s" ),
3212
3212
path );
@@ -3251,22 +3251,20 @@ static int process_entry(struct merge_options *opt,
3251
3251
3252
3252
entry -> processed = 1 ;
3253
3253
if (entry -> rename_conflict_info ) {
3254
- struct rename_conflict_info * conflict_info = entry -> rename_conflict_info ;
3255
- switch (conflict_info -> rename_type ) {
3254
+ struct rename_conflict_info * ci = entry -> rename_conflict_info ;
3255
+ switch (ci -> rename_type ) {
3256
3256
case RENAME_NORMAL :
3257
3257
case RENAME_ONE_FILE_TO_ONE :
3258
3258
clean_merge = handle_rename_normal (opt ,
3259
3259
path ,
3260
3260
o_oid , o_mode ,
3261
3261
a_oid , a_mode ,
3262
3262
b_oid , b_mode ,
3263
- conflict_info );
3263
+ ci );
3264
3264
break ;
3265
3265
case RENAME_VIA_DIR :
3266
3266
clean_merge = 1 ;
3267
- if (handle_rename_via_dir (opt ,
3268
- conflict_info -> pair1 ,
3269
- conflict_info -> branch1 ))
3267
+ if (handle_rename_via_dir (opt , ci -> pair1 , ci -> branch1 ))
3270
3268
clean_merge = -1 ;
3271
3269
break ;
3272
3270
case RENAME_ADD :
@@ -3276,19 +3274,17 @@ static int process_entry(struct merge_options *opt,
3276
3274
* two-way merged cleanly with the added file, I
3277
3275
* guess it's a clean merge?
3278
3276
*/
3279
- clean_merge = handle_rename_add (opt , conflict_info );
3277
+ clean_merge = handle_rename_add (opt , ci );
3280
3278
break ;
3281
3279
case RENAME_DELETE :
3282
3280
clean_merge = 0 ;
3283
- if (handle_rename_delete (opt ,
3284
- conflict_info -> pair1 ,
3285
- conflict_info -> branch1 ,
3286
- conflict_info -> branch2 ))
3281
+ if (handle_rename_delete (opt , ci -> pair1 ,
3282
+ ci -> branch1 , ci -> branch2 ))
3287
3283
clean_merge = -1 ;
3288
3284
break ;
3289
3285
case RENAME_ONE_FILE_TO_TWO :
3290
3286
clean_merge = 0 ;
3291
- if (handle_rename_rename_1to2 (opt , conflict_info ))
3287
+ if (handle_rename_rename_1to2 (opt , ci ))
3292
3288
clean_merge = -1 ;
3293
3289
break ;
3294
3290
case RENAME_TWO_FILES_TO_ONE :
@@ -3298,8 +3294,7 @@ static int process_entry(struct merge_options *opt,
3298
3294
* can then be two-way merged cleanly, I guess it's
3299
3295
* a clean merge?
3300
3296
*/
3301
- clean_merge = handle_rename_rename_2to1 (opt ,
3302
- conflict_info );
3297
+ clean_merge = handle_rename_rename_2to1 (opt , ci );
3303
3298
break ;
3304
3299
default :
3305
3300
entry -> processed = 0 ;
0 commit comments