Мой cherry-pick удаляет один файл, который существует на цели, но не завершается автоматически. Зачем? - PullRequest
0 голосов
/ 12 ноября 2018

У меня есть коммит, который удаляет один файл:

C:\xyz\tmp55 [55 ↑1]> git show 17e645494
commit 17e6454949b44911bc42135e8f12c7f169ef835f
Author: Mark Kharitonov <bla-bla-bla>
Date:   Mon Nov 12 11:05:18 2018 -0500

    Some changes on MarkFeature

diff --git a/New Text Document.txt b/New Text Document.txt
deleted file mode 100644
index e69de29bb..000000000

Файл существует в целевом объекте:

C:\xyz\tmp55 [55 ↑1]> dir '.\New Text Document.txt' -Name
New Text Document.txt

Все же вишня не может автоматически завершиться:

C:\xyz\tmp55 [55 ↑1]> git cherry-pick 17e64549
warning: inexact rename detection was skipped due to too many files.
warning: you may want to set your merge.renamelimit variable to at least 7501 and retry the command.
error: could not apply 17e645494... Some changes on MarkFeature
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
C:\xyz\tmp55 [55 ↑1 +0 ~0 -0 !1 | +0 ~0 -1 !]>

Почему это?

1 Ответ

0 голосов
/ 12 ноября 2018

Содержимое файла, вероятно, изменилось, и в этом случае возникает конфликт. Представьте себе ситуацию. Вы удаляете файл на ветке, на другой ветке кто-то менял файл .... каким должен быть результат при слиянии? Ожидается конфликт.

...