summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-04-15 13:36:00 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-04-15 13:36:00 -0700
commit771c758e8a89d4d7aa482e7f98d8878214630301 (patch)
tree681efee93c48430236a591033b3fe47ed92ecc53 /Documentation
parentThe ninth batch (diff)
parentgit-apply: try threeway first when "--3way" is used (diff)
downloadtgif-771c758e8a89d4d7aa482e7f98d8878214630301.tar.xz
Merge branch 'jz/apply-run-3way-first'
"git apply --3way" has always been "to fall back to 3-way merge only when straight application fails". Swap the order of falling back so that 3-way is always attempted first (only when the option is given, of course) and then straight patch application is used as a fallback when it fails. * jz/apply-run-3way-first: git-apply: try threeway first when "--3way" is used
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-apply.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/Documentation/git-apply.txt b/Documentation/git-apply.txt
index 91d9a8601c..9144575299 100644
--- a/Documentation/git-apply.txt
+++ b/Documentation/git-apply.txt
@@ -84,9 +84,8 @@ OPTIONS
-3::
--3way::
- When the patch does not apply cleanly, fall back on 3-way merge if
- the patch records the identity of blobs it is supposed to apply to,
- and we have those blobs available locally, possibly leaving the
+ Attempt 3-way merge if the patch records the identity of blobs it is supposed
+ to apply to and we have those blobs available locally, possibly leaving the
conflict markers in the files in the working tree for the user to
resolve. This option implies the `--index` option, and is incompatible
with the `--reject` and the `--cached` options.