この質問に対する答えはすでにあるかもしれませんが、検索するのは難しいです。基本的に
ブロック/チャンクを要求できないことを発見した場合は、変更されたpatch
ブロックを拒否ファイルとして拒否します。
拒否ファイルに競合を入れずに最終出力に含める方法、ただgit
衝突が見つかったら最終出力に両方のバージョンを含める:
$ cat merge.txt
<<<<<<< HEAD
this is some content to mess with
content to append
=======
totally different content to merge later
>>>>>>> new_branch_to_merge_later
ベストアンサー1
GNUパッチが利用可能--merge
オプション:
--merge or --merge=merge or --merge=diff3
Merge a patch file into the original files similar to diff3(1)
or merge(1). If a conflict is found, patch outputs a warning
and brackets the conflict with <<<<<<< and >>>>>>> lines. A
typical conflict will look like this:
<<<<<<<
lines from the original file
|||||||
original lines from the patch
=======
new lines from the patch
>>>>>>>
The optional argument of --merge determines the output format
for conflicts: the diff3 format shows the ||||||| section with
the original lines from the patch; in the merge format, this
section is missing. The merge format is the default.
This option implies --forward and does not take the --fuzz=num
option into account.
奇妙にこれは見つかりません。GNU差分文書(どこその他のpatch
オプション録音)。