https://gcc.gnu.org/g:586856943fec5b9ed5ef7289b3bc318a7a37284d
commit r17-539-g586856943fec5b9ed5ef7289b3bc318a7a37284d Author: Karl Meakin <[email protected]> Date: Thu Mar 26 16:50:36 2026 +0000 Configure EditorConfig for Git commit messages Add a section for Git commit messages to the `.editorconfig` file, so that editors with EditorConfig support will automatically format commit messages according to the GNU style. ChangeLog: * .editorconfig (COMMIT_EDITMSG): New section. Diff: --- .editorconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.editorconfig b/.editorconfig index 4d53220ba8ed..13cfb75abb0c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -30,6 +30,13 @@ end_of_line = lf insert_final_newline = true tab_width = 8 +# Git commit messages +[COMMIT_EDITMSG] +indent_size = 8 +indent_style = tab +max_line_length = 72 +trim_trailing_whitespace = true + # EditorConfig files [.editorconfig] charset = utf-8
