Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our official announcement
Adds syntax highlighting to Git commit, merge, and rebase messages edited in Atom.
You can configure Atom to be your Git editor with the following command:
git config --global core.editor "atom --wait"
This package uses warning and error highlighting to help bring attention to some violations of standard conventions around commit message best practices:
- If the subject line goes beyond 50 characters and again if it goes beyond 72 characters
- If the subject line begins with a lower-case letter (emoji at the beginning of the subject line won't be highlighted)
- If the subject line ends with a period
- If any non-comment body line goes beyond 72 characters
If language-diff is installed, the
diff part of git commit --verbose
messages is highlighted as well.
Originally converted from the Git TextMate bundle.
Contributions are greatly appreciated. Please fork this repository and open a pull request to add snippets, make grammar tweaks, etc.