]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Configure EditorConfig for Git commit messages
authorKarl Meakin <karl.meakin@arm.com>
Thu, 26 Mar 2026 16:50:36 +0000 (16:50 +0000)
committerKarl Meakin <karl.meakin@arm.com>
Fri, 15 May 2026 23:32:16 +0000 (23:32 +0000)
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.

.editorconfig

index 4d53220ba8ed7aaaac5bbaa90481001c36a1320f..13cfb75abb0c036175eeab10f6620f02c6c4a0a8 100644 (file)
@@ -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