Skip to content

Conversation

@NonLogicalDev
Copy link
Contributor

@NonLogicalDev NonLogicalDev commented Nov 20, 2025

Bring StGit in parity with git's behavior for comment characters. Setting core.commentChar to a value other than '#' allows the use of certain markup like markdown in commit messages. Git for that reason allows overriding the comment character to any string value.

This change incurs a small amount of extra allocations for constructing strings at runtime taking into account the user's choice of comment character.

issue: #600

@NonLogicalDev NonLogicalDev force-pushed the cli@w2jel branch 3 times, most recently from 1ccbeac to 819bccb Compare November 20, 2025 09:39
…s in commit messages

Bring StGit in parity with git's behavior for comment characters.  Setting
`core.commentChar` to a value other than '#' allows the use of certain markup
like markdown in commit messages.  Git for that reason allows overriding the
comment character to any string value.

This change incurs a small amount of extra allocations for constructing strings
at runtime taking into account the user's choice of comment character.

issue: 600
Copy link
Collaborator

@jpgrayson jpgrayson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this. Thank you. I've rebased and pushed this change to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants