stgit icon indicating copy to clipboard operation
stgit copied to clipboard

Support git config commentChar

Open coady opened this issue 1 month ago • 0 comments

Comment lines in git are configurable, but appear to be hard-coded to # in stgit. New patches append

# Please enter the message for your patch. Lines starting with
# '#' will be ignored. An empty message aborts the new patch.
# The patch name and author information may also be modified.

and strip all lines starting with # regardless of the git config core.commentChar setting.

The use case is that commit text is commonly used in markdown descriptions - such as GitHub - where # is used for headings.

coady avatar Nov 16 '25 19:11 coady