summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-04-17 10:23:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-04-18 04:49:29 (GMT)
commit1055997e2fc707a15baf232df2ac481055c14321 (patch)
tree4d32fd986b4c02811266f3db3d087858afcd4a53 /Documentation
parentd540b70c85ccd08507348785fd210ef8317a864d (diff)
downloadgit-1055997e2fc707a15baf232df2ac481055c14321.zip
git-1055997e2fc707a15baf232df2ac481055c14321.tar.gz
git-1055997e2fc707a15baf232df2ac481055c14321.tar.bz2
merge: add scissors line on merge conflict
This fixes a bug where the scissors line is placed after the Conflicts: section, in the case where a merge conflict occurs and commit.cleanup = scissors. Next, if commit.cleanup = scissors is specified, don't produce a scissors line in commit if one already exists in the MERGE_MSG file. Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/merge-options.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/merge-options.txt b/Documentation/merge-options.txt
index bcf0b3e..61876db 100644
--- a/Documentation/merge-options.txt
+++ b/Documentation/merge-options.txt
@@ -33,8 +33,11 @@ updated behaviour, the environment variable `GIT_MERGE_AUTOEDIT` can be
set to `no` at the beginning of them.
--cleanup=<mode>::
- This option determines how the merge message will be cleaned up
- before commiting. See linkgit:git-commit[1] for more details.
+ This option determines how the merge message will be cleaned up before
+ commiting. See linkgit:git-commit[1] for more details. In addition, if
+ the '<mode>' is given a value of `scissors`, scissors will be appended
+ to `MERGE_MSG` before being passed on to the commit machinery in the
+ case of a merge conflict.
--ff::
When the merge resolves as a fast-forward, only update the branch