Skip to contentSkip to conversation

editorconfig: add .bash extension

PATCH In review David Mandelberg 2 participants 2 messages Mar 2, 2025 – Mar 3, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 editorconfig: add .bash extension

Both files in the command below appear to be indented with tabs, and I'd expect .bash files to have roughly the same style as .sh files.

$ find . -name \*.bash
./contrib/completion/git-completion.bash
./ci/check-directional-formatting.bash
---
 .editorconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.editorconfig +1 -1
index a3c578a43c..2d3929b591 100644
@@ -4,7 +4,7 @@ insert_final_newline = true
 
 # The settings for C (*.c and *.h) files are mirrored in .clang-format.  Keep
 # them in sync.
-[{*.{c,h,sh,perl,pl,pm,txt,adoc},config.mak.*,Makefile}]
+[{*.{c,h,sh,bash,perl,pl,pm,txt,adoc},config.mak.*,Makefile}]
 indent_style = tab
 tab_width = 8
 
Signature · 1 line
2.47.2
#1 lore raw
Quoted 11 lines · David Mandelberg

Both files in the command below appear to be indented with tabs, and I'd expect .bash files to have roughly the same style as .sh files.

$ find . -name \*.bash
./contrib/completion/git-completion.bash
./ci/check-directional-formatting.bash
---
 .editorconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I love these obviously correct additions ;-)

Thanks.

Quoted 12 lines
.editorconfig +1 -1
index a3c578a43c..2d3929b591 100644
@@ -4,7 +4,7 @@ insert_final_newline = true
 
 # The settings for C (*.c and *.h) files are mirrored in .clang-format.  Keep
 # them in sync.
-[{*.{c,h,sh,perl,pl,pm,txt,adoc},config.mak.*,Makefile}]
+[{*.{c,h,sh,bash,perl,pl,pm,txt,adoc},config.mak.*,Makefile}]
 indent_style = tab
 tab_width = 8