@@ -507,7 +507,6 @@ enum conflict_and_info_types {
507
507
CONFLICT_FILE_DIRECTORY ,
508
508
CONFLICT_DISTINCT_MODES ,
509
509
CONFLICT_MODIFY_DELETE ,
510
- CONFLICT_PRESENT_DESPITE_SKIPPED ,
511
510
512
511
/* Regular rename */
513
512
CONFLICT_RENAME_RENAME , /* same file renamed differently */
@@ -553,8 +552,6 @@ static const char *type_short_descriptions[] = {
553
552
[CONFLICT_FILE_DIRECTORY ] = "CONFLICT (file/directory)" ,
554
553
[CONFLICT_DISTINCT_MODES ] = "CONFLICT (distinct modes)" ,
555
554
[CONFLICT_MODIFY_DELETE ] = "CONFLICT (modify/delete)" ,
556
- [CONFLICT_PRESENT_DESPITE_SKIPPED ] =
557
- "CONFLICT (upgrade your version of git)" ,
558
555
559
556
/*** Regular rename ***/
560
557
[CONFLICT_RENAME_RENAME ] = "CONFLICT (rename/rename)" ,
@@ -770,8 +767,7 @@ static void path_msg(struct merge_options *opt,
770
767
/* Sanity checks */
771
768
assert (omittable_hint ==
772
769
!starts_with (type_short_descriptions [type ], "CONFLICT" ) ||
773
- type == CONFLICT_DIR_RENAME_SUGGESTED ||
774
- type == CONFLICT_PRESENT_DESPITE_SKIPPED );
770
+ type == CONFLICT_DIR_RENAME_SUGGESTED );
775
771
if (opt -> record_conflict_msgs_as_headers && omittable_hint )
776
772
return ; /* Do not record mere hints in headers */
777
773
if (opt -> priv -> call_depth && opt -> verbosity < 5 )
@@ -4424,22 +4420,8 @@ static int record_conflicted_index_entries(struct merge_options *opt)
4424
4420
* the CE_SKIP_WORKTREE bit and manually write those
4425
4421
* files to the working disk here.
4426
4422
*/
4427
- if (ce_skip_worktree (ce )) {
4428
- struct stat st ;
4429
-
4430
- if (!lstat (path , & st )) {
4431
- char * new_name = unique_path (opt ,
4432
- path ,
4433
- "cruft" );
4434
-
4435
- path_msg (opt , CONFLICT_PRESENT_DESPITE_SKIPPED , 1 ,
4436
- path , NULL , NULL , NULL ,
4437
- _ ("Note: %s not up to date and in way of checking out conflicted version; old copy renamed to %s" ),
4438
- path , new_name );
4439
- errs |= rename (path , new_name );
4440
- }
4423
+ if (ce_skip_worktree (ce ))
4441
4424
errs |= checkout_entry (ce , & state , NULL , NULL );
4442
- }
4443
4425
4444
4426
/*
4445
4427
* Mark this cache entry for removal and instead add
0 commit comments