A new field core.commentString is available to allow setting of a multi-character string. commentChar will reject a setting that is more than a single ASCII character.
Using the setting "auto" for core.commentChar results in the same behavior described in #320 but with the string "auto" prefixed on the included help text.
AlmaLinux release 9.3 (Shamrock Pampas Cat) in WSL
Steps to reproduce
Set core.commentChar to "auto"
Commit a change using neogit
Expected behavior
The resulting comment message should not contain help content generated by neogit
Actual behavior
Commit message contains:
auto
auto Commands:
auto q Close
auto <c-c><c-c> Submit
auto <c-c><c-k> Abort
auto <m-p> Previous Message
auto <m-n> Next Message
auto <m-r> Reset Message
Minimal config
Use default configuration of neogit, no other plugins outside neogit dependencies needed.
Description
1095 detects the setting for
core.commentChar
however the support is incomplete in two ways.core.commentChar
can be set to the string "auto", causinggit-commit
to select a character that does not appear at the beginning of any line of the existing commit message. See https://git-scm.com/docs/git-config/2.47.0#Documentation/git-config.txt-corecommentCharcore.commentString
is available to allow setting of a multi-character string.commentChar
will reject a setting that is more than a single ASCII character.Using the setting "auto" for
core.commentChar
results in the same behavior described in #320 but with the string "auto" prefixed on the included help text.Neovim version
NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713484068
Operating system and version
AlmaLinux release 9.3 (Shamrock Pampas Cat) in WSL
Steps to reproduce
Expected behavior
The resulting comment message should not contain help content generated by neogit
Actual behavior
Commit message contains:
Minimal config