Configure EditorConfig for Git commit messages
GCC's repository now includes EditorConfig settings for Git commit messages, enforcing consistent formatting.
The GCC project now includes an EditorConfig file that specifies formatting rules for Git commit messages. This ensures that editors with EditorConfig support will automatically format commit messages according to the project’s style guidelines. This change aims to improve the consistency and readability of commit messages within the GCC project.
In Details
This commit adds a new section to the .editorconfig file, specifically for COMMIT_EDITMSG. This configures editors with EditorConfig support to automatically format commit messages according to the GNU style. This change does not affect the compiler itself, but only the formatting of commit messages.
For Context
EditorConfig is a file format and a set of editor plugins that help developers maintain consistent coding styles across different editors and IDEs. It allows defining coding style rules (e.g., indentation, line endings, character set) in a file named .editorconfig, which is then automatically applied by supporting editors. This commit adds EditorConfig settings to enforce a consistent style for Git commit messages within the GCC project, improving readability and collaboration.