fix(notcore): add .nothooks-state.toml to default_ignore and starter_toml
Some checks failed
Public Repo Readiness / Check Public Repo Readiness (push) Failing after 4s
Some checks failed
Public Repo Readiness / Check Public Repo Readiness (push) Failing after 4s
Prevents state files from being accidentally linked into the target directory when a user initializes a fresh notfiles.toml from the starter template. Closes #2 (post-merge audit) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -41,6 +41,7 @@ fn default_ignore() -> Vec<String> {
|
||||
"LICENSE".to_string(),
|
||||
"notfiles.toml".to_string(),
|
||||
".notfiles-state.toml".to_string(),
|
||||
".nothooks-state.toml".to_string(),
|
||||
]
|
||||
}
|
||||
|
||||
@@ -111,7 +112,7 @@ impl Config {
|
||||
pub fn starter_toml() -> &'static str {
|
||||
r#"[defaults]
|
||||
target = "~"
|
||||
ignore = [".git", ".DS_Store", "README.md", "LICENSE", "notfiles.toml"]
|
||||
ignore = [".git", ".DS_Store", "README.md", "LICENSE", "notfiles.toml", ".notfiles-state.toml", ".nothooks-state.toml"]
|
||||
|
||||
# [packages.ssh]
|
||||
# method = "copy"
|
||||
|
||||
Reference in New Issue
Block a user