Skip to content

Commit 78fb67f

Browse files
committed
apply: document --3way option
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f2633eb commit 78fb67f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Documentation/git-apply.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-apply - Apply a patch to files and/or to the index
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git apply' [--stat] [--numstat] [--summary] [--check] [--index]
12+
'git apply' [--stat] [--numstat] [--summary] [--check] [--index] [--3way]
1313
[--apply] [--no-add] [--build-fake-ancestor=<file>] [-R | --reverse]
1414
[--allow-binary-replacement | --binary] [--reject] [-z]
1515
[-p<n>] [-C<n>] [--inaccurate-eof] [--recount] [--cached]
@@ -72,6 +72,15 @@ OPTIONS
7272
cached data, apply the patch, and store the result in the index
7373
without using the working tree. This implies `--index`.
7474

75+
-3::
76+
--3way::
77+
When the patch does not apply cleanly, fall back on 3-way merge if
78+
the patch records the identity of blobs it is supposed to apply to,
79+
and we have those blobs available locally, possibly leaving the
80+
conflict markers in the files in the working tree for the user to
81+
resolve. This option implies the `--index` option, and is incompatible
82+
with the `--reject` and the `--cached` options.
83+
7584
--build-fake-ancestor=<file>::
7685
Newer 'git diff' output has embedded 'index information'
7786
for each blob to help identify the original version that

0 commit comments

Comments
 (0)