If there is a match for minor-mode before major-mode, it is sent to Copilot as a language id.
Why
Because git-commit-mode in git-commit.el is currently minor-mode and major-mode specifies text-mode, markdown-mode, etc. I felt that the accuracy was improved when this was correctly recognized as writing git commit messages.
What
If there is a match for minor-mode before major-mode, it is sent to Copilot as a language id.
Why
Because git-commit-mode in git-commit.el is currently minor-mode and major-mode specifies text-mode, markdown-mode, etc. I felt that the accuracy was improved when this was correctly recognized as writing git commit messages.