Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ indent_size = 4
[*.{cmd,bat}]
end_of_line = crlf

# Git config — git writes (and idiomatically uses) tab indentation under each
# section, so the space default does not apply. Covers the plain file, gitconfig
# includes, and chezmoi-style source forms (dot_gitconfig, dot_gitconfig.tmpl).
[{.gitconfig,*.gitconfig,dot_gitconfig*}]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Match prefixed chezmoi gitconfig sources

In chezmoi repos where ~/.gitconfig is marked private/readonly/encrypted, the source filename is prefixed before dot_ (chezmoi documents regular-file prefixes in the order encrypted_, private_, readonly_, empty_, executable_, dot_, with .tmpl allowed). This glob only matches names that start with dot_gitconfig, so a common file like private_dot_gitconfig.tmpl still falls back to the base indent_style = space and editorconfig-checker will continue rejecting Git's tab-indented keys; include the allowed prefixes before dot_gitconfig so the advertised chezmoi coverage actually applies.

Useful? React with 👍 / 👎.

indent_style = tab

# Lockfiles — generated; suppress formatting enforcement.
[{package-lock.json,*.lock}]
indent_size = unset
Expand Down