Skip to content

Adopt a convention for highlighting commit messages #4027

@rpatterson

Description

@rpatterson

Magit uses magit-log-propertize-keywords to find parts of the commit message to highlight in log buffers and elsewhere. I find this very useful making it much easier to visually scan long logs to distinguish related commits and find what I'm looking for. Currently, magit-log-propertize-keywords only handles sqaush, fixup or "keywords" in brackets, [foo] .... So I ended up using the latter to make my logs more readable.

Worrying that I was abusing or misusing my commit messages to achieve this, I went looking for any documentation about how one is supposed to use [foo] in git commit messages in the wider VCS community and I was surprised I couldn't really find anything authoritative. So maybe magit should adopt some external, more rigorous convention about commit messages for it's highlighting? When I did a search, I found commitlint which seems to be a pretty good index for references about git commit message conventions that magit might adopt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionsWe now use the "Discussions" feature for this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions