From: Dmitriy Smirnov Date: Mon, 24 Jun 2019 16:01:55 GMT Subject: Git 2.22 , --preserve-merges fails with custom commentChar Message-ID: <68F548D4-DF5A-411E-AAB7-33C9DBF9B658@jetbrains.com> Hello, I know —preserve-merges is deprecated now and —rebase-merges should be used instead, however it is still possible to pass —preserve-merges flag, so the issue seems worth reporting. In git 2.22, —preserve-merges does not work when custom commentchar is used. It shows the editor to select options bu then fails: ➜ ProjectRoot git:(master) git -c core.quotepath=false -c log.showSignature=false -c core.commentChar=@ rebase --interactive --preserve-merges --no-autosquash 554597b2e2c73e636b9c0cdf24dacba38568d02b warning: git rebase --preserve-merges is deprecated. Use --rebase-merges instead. error: invalid line 6: @ Rebase 554597b..a8702dd onto 554597b (4 commands) error: invalid line 6: @ Rebase 554597b..0607564 onto 554597b (4 commands) error: invalid line 7: @ error: invalid line 8: @ Commands: error: invalid line 9: @ p, pick = use commit error: invalid line 10: @ r, reword = use commit, but edit the commit message error: invalid line 11: @ e, edit = use commit, but stop for amending error: invalid line 12: @ s, squash = use commit, but meld into previous commit error: invalid line 13: @ f, fixup = like "squash", but discard this commit's log message error: invalid line 14: @ x, exec = run command (the rest of the line) using shell error: invalid line 15: @ d, drop = remove commit error: invalid line 16: @ l, label