diff options
author | Denton Liu <liu.denton@gmail.com> | 2019-04-17 12:23:30 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-19 05:05:36 +0200 |
commit | 1a2b985fb375e7ce14932bfc59365024af2fb6ab (patch) | |
tree | 037601e08fa0b4b958b8342b77f991c75799ca97 /Documentation/git-cherry-pick.txt | |
parent | sequencer.c: save and restore cleanup mode (diff) | |
download | git-1a2b985fb375e7ce14932bfc59365024af2fb6ab.tar.xz git-1a2b985fb375e7ce14932bfc59365024af2fb6ab.zip |
cherry-pick/revert: add scissors line on merge conflict
Fix a bug where the scissors line is placed after the Conflicts:
section, in the case where a merge conflict occurs and
commit.cleanup = scissors.
Helped-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-cherry-pick.txt')
-rw-r--r-- | Documentation/git-cherry-pick.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/git-cherry-pick.txt b/Documentation/git-cherry-pick.txt index d64e72462f..754b16ce0c 100644 --- a/Documentation/git-cherry-pick.txt +++ b/Documentation/git-cherry-pick.txt @@ -57,6 +57,13 @@ OPTIONS With this option, 'git cherry-pick' will let you edit the commit message prior to committing. +--cleanup=<mode>:: + This option determines how the commit message will be cleaned up before + being passed on to the commit machinery. See linkgit:git-commit[1] for more + details. In particular, if the '<mode>' is given a value of `scissors`, + scissors will be appended to `MERGE_MSG` before being passed on in the case + of a conflict. + -x:: When recording the commit, append a line that says "(cherry picked from commit ...)" to the original commit |