Skip to content

Commit 082c15a

Browse files
committed
Merge branch 'en/merge-options-doc'
Doc update. * en/merge-options-doc: merge-options.txt: correct wording of --no-commit option
2 parents b0e7fb2 + 1ede45e commit 082c15a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Documentation/merge-options.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
Perform the merge and commit the result. This option can
44
be used to override --no-commit.
55
+
6-
With --no-commit perform the merge but pretend the merge
7-
failed and do not autocommit, to give the user a chance to
8-
inspect and further tweak the merge result before committing.
6+
With --no-commit perform the merge and stop just before creating
7+
a merge commit, to give the user a chance to inspect and further
8+
tweak the merge result before committing.
9+
+
10+
Note that fast-forward updates do not create a merge commit and
11+
therefore there is no way to stop those merges with --no-commit.
12+
Thus, if you want to ensure your branch is not changed or updated
13+
by the merge command, use --no-ff with --no-commit.
914

1015
--edit::
1116
-e::

0 commit comments

Comments
 (0)