Skip to content

Commit 76b80cd

Browse files
moygitster
authored andcommitted
Documentation/git-merge.txt: weaken warning about uncommited changes
Commit 35d2fff introduced 'git merge --abort' as a synonym to 'git reset --merge', and added some failing tests in t7611-merge-abort.sh (search '###' in this file) showing that 'git merge --abort' could not always recover the pre-merge state. Still, in many cases, 'git merge --abort' just works, and it is usually considered that the ability to start a merge with uncommited changes is an important property of Git. Weaken the warning by discouraging only merge with /non-trivial/ uncommited changes. Signed-off-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 04a74b6 commit 76b80cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-merge.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ especially if those changes were further modified after the merge
5656
was started), 'git merge --abort' will in some cases be unable to
5757
reconstruct the original (pre-merge) changes. Therefore:
5858

59-
*Warning*: Running 'git merge' with uncommitted changes is
60-
discouraged: while possible, it leaves you in a state that is hard to
59+
*Warning*: Running 'git merge' with non-trivial uncommitted changes is
60+
discouraged: while possible, it may leave you in a state that is hard to
6161
back out of in the case of a conflict.
6262

6363

0 commit comments

Comments
 (0)