Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Git merge commit message “language” #11840

Open
jakubkaczor opened this issue Oct 6, 2024 · 1 comment
Open

Support Git merge commit message “language” #11840

jakubkaczor opened this issue Oct 6, 2024 · 1 comment
Labels
A-language-support Area: Support for programming/text languages C-enhancement Category: Improvements

Comments

@jakubkaczor
Copy link

jakubkaczor commented Oct 6, 2024

Git merge commit messages have no highlighting. This can be verified with

cd $(mktemp -d)
git init hx-msg-test
cd hx-msg-test/
touch test
git add test 
git commit --message 'Ok'
git switch --create test
touch test2
git add test2
git commit --message 'Ok'
git switch main
git merge test --commit  # No highlighting

I took a look, and it appears Git merge commit messages are unsupported as a language. That is, there are no queries in runtime/queries and no entries in languages.toml that correspond to them.

@jakubkaczor jakubkaczor added the C-enhancement Category: Improvements label Oct 6, 2024
@the-mikedavis
Copy link
Member

We might just need to add .git/MERGE_MSG to the git commit language's file-types unless the syntax is different for a merge commit

@the-mikedavis the-mikedavis added the A-language-support Area: Support for programming/text languages label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

2 participants