Skip to content

Commit 7047f75

Browse files
illikainengitster
authored andcommitted
editorconfig: indent text files with tabs
Previously, the .editorconfig did not specify an indentation style for text files. However, a quick look for indentation-like spacing suggest that tabs are more common for documentation: $ git grep -Pe '^ {4}' -- '*.txt' |wc -l 2683 $ git grep -Pe '^\t' -- '*.txt' |wc -l 14011 Note that there are a lot of files that indent list continuations (and other things) with a single space -- if the first search was made without the fixed quantifier the result would look very different. However, the result does correspond with my anecdotal experience when editing git documentation. This commit adds *.txt to .editorconfig as an extension that should be indented with tabs. Signed-off-by: Hans Jerry Illikainen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 53a06cf commit 7047f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ insert_final_newline = true
44

55
# The settings for C (*.c and *.h) files are mirrored in .clang-format. Keep
66
# them in sync.
7-
[*.{c,h,sh,perl,pl,pm}]
7+
[*.{c,h,sh,perl,pl,pm,txt}]
88
indent_style = tab
99
tab_width = 8
1010

0 commit comments

Comments
 (0)