Interface: IgnorePathPresets
Defined in: CSpellSettingsDef.ts:203
Presets of files to skip. Each one is enabled or disabled on its own.
Properties
git?
optionalgit?:boolean
Defined in: CSpellSettingsDef.ts:220
Skip git's own files inside the root folder:
- a file named
.git, which git puts in a worktree or a submodule - everything inside a
.gitfolder, except git's message files
Files outside the root folder are not skipped. For example, a submodule's commit message is in the parent
repository's .git folder.
Git's message files stay checked, so a commit-msg hook can spell check the commit message. They are the files
whose names end in MSG, such as COMMIT_EDITMSG, MERGE_MSG, and TAG_EDITMSG, and EDIT_DESCRIPTION.
They are kept in two places:
- directly inside a
.gitfolder - directly inside a linked worktree's folder in
.git/worktrees
Default
true
nestedWorktrees?
optionalnestedWorktrees?:boolean
Defined in: CSpellSettingsDef.ts:234
Skip git worktrees inside the root folder, such as .worktrees/feature. A worktree is another checkout of the
same repository, often of another branch.
The worktrees are found in the repository's own records, in .git/worktrees, so finding them does not search
the folders. Only the worktrees of the repository that holds the root folder are skipped. Submodules and other
repositories inside the root folder are still checked.
When the root folder is inside a worktree, that worktree's files are still checked.
Default
true