sequencer: don't abbreviate a command if it doesn't have a short form
authorAlban Gruin <redacted>
Mon, 30 Mar 2020 12:42:35 +0000 (14:42 +0200)
committerJunio C Hamano <redacted>
Mon, 30 Mar 2020 19:47:08 +0000 (12:47 -0700)
commit68e7090f31b4d4f2c7b9a25240af61149fbebb5c
treec6fca4a292783bd02cc3f39dfa325061b83dacd3
parent274b9cc25322d9ee79aa8e6d4e86f0ffe5ced925
sequencer: don't abbreviate a command if it doesn't have a short form

When the sequencer is requested to abbreviate commands, it will replace
those that do not have a short form (eg. `noop') by a comment mark.
`noop' serves no purpose, except when fast-forwarding (ie. by running
`git rebase').  Removing it will break this command when
`rebase.abbreviateCommands' is set to true.

Teach todo_list_to_strbuf() to check if a command has an actual
short form, and to ignore it if not.

Signed-off-by: Alban Gruin <redacted>
Signed-off-by: Junio C Hamano <redacted>
sequencer.c
git clone https://git.99rst.org/PROJECT