Skip to content

Commit 1611f73

Browse files
committed
Add Git configuration files to template .editorconfig
The `.gitmodules` file defines the properties of a repository's submodules. The file automatically generated by Git submodule commands use tabs for indentation. It uses the same file format as the Git configuration file (e.g., `.gitconfig`). Even though the `.gitconfig` file is not likely to be found under the repository tree, it's possible the `.editorconfig` might end up being used outside the project specific scope so I added it to the file pattern.
1 parent bc14b21 commit 1611f73

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@ indent_style = space
5555
[*.{yaml,yml}]
5656
indent_size = 2
5757
indent_style = space
58+
59+
[{.gitconfig,.gitmodules}]
60+
indent_style = tab

workflow-templates/assets/general/.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@ indent_style = space
5555
[*.{yaml,yml}]
5656
indent_size = 2
5757
indent_style = space
58+
59+
[{.gitconfig,.gitmodules}]
60+
indent_style = tab

0 commit comments

Comments
 (0)