Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sequencer: comment commit messages properly
The rebase todo editor has commands like `fixup -c` which affects the commit messages of the rebased commits.[1] For example: pick hash1 <msg> fixup hash2 <msg> fixup -c hash3 <msg> This says that hash2 and hash3 should be squashed into hash1 and that hash3’s commit message should be used for the resulting commit. So the user is presented with an editor where the two first commit messages are commented out and the third is not. However this does not work if `core.commentChar`/`core.commentString` is in use since the comment char is hardcoded (#) in this `sequencer.c` function. As a result the first commit message will not be commented out. † 1: See 9e3cebd (rebase -i: add fixup [-C | -c] command, 2021-01-29) Signed-off-by: Phillip Wood <[email protected]> Co-authored-by: Phillip Wood <[email protected]> Reported-by: Taylor Blau <[email protected]> Signed-off-by: Kristoffer Haugsbakk <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
- Loading branch information