Skip to content

Add support for core.commentChar configuration #1852

@jelmer

Description

@jelmer

Summary

Add support for the core.commentChar configuration option, which sets the character used to prefix comments in commit messages.

Description

The core.commentChar option allows users to customize the character used to mark comment lines in commit message templates and interactive operations. By default, Git uses '#', but this can be changed to avoid conflicts with commit message content.

Benefits

  • Allows customization of comment character in commit messages
  • Prevents conflicts when commit messages contain the default '#' character
  • Improves user experience in interactive Git operations
  • Essential for projects that use '#' extensively in commit messages

Implementation Notes

This would involve updating commit message parsing and template generation to use the configured comment character instead of the hardcoded '#'.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions