Skip to content

Support git config commentCharΒ #600

@coady

Description

@coady

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions