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

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:
Joseph O'Brien
2026-04-01 02:22:46 -04:00
parent 7f91a958dd
commit 28f129c944

View File

@@ -41,6 +41,7 @@ fn default_ignore() -> Vec<String> {
"LICENSE".to_string(), "LICENSE".to_string(),
"notfiles.toml".to_string(), "notfiles.toml".to_string(),
".notfiles-state.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 { pub fn starter_toml() -> &'static str {
r#"[defaults] r#"[defaults]
target = "~" 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] # [packages.ssh]
# method = "copy" # method = "copy"