diff --git a/.gitignore b/.gitignore index 42c29f2..aaf3d4e 100644 --- a/.gitignore +++ b/.gitignore @@ -124,6 +124,7 @@ skills-disabled/ !.claude/memory/ !.claude/audits/ !.claude/settings.json +!.claude/rules/ # But keep local stuff ignored within .claude/ .claude/settings.local.json .claude/agent-memory/ diff --git a/lib/gitflow-test.sh b/lib/gitflow-test.sh index 7ba2cdf..ce0b9a5 100644 --- a/lib/gitflow-test.sh +++ b/lib/gitflow-test.sh @@ -45,6 +45,7 @@ chk "develop exists" 'git rev-parse --verify -q refs/heads/develop >/dev/nul chk "root commit on main" '[ -n "$(git rev-parse -q --verify main)" ]' chk "gitignore created" '[ -f .gitignore ]' chk "socle: !.claude/deploy/" 'grep -qxF "!.claude/deploy/" .gitignore' +chk "socle: !.claude/rules/" 'grep -qxF "!.claude/rules/" .gitignore' chk "socle: re-ignore PENDING" 'grep -qxF ".claude/deploy/PENDING.json" .gitignore' chk "hook installed" '[ -x .githooks/pre-commit ] && [ "$(git config core.hooksPath)" = .githooks ]' chk "tree CLEAN after init" '[ -z "$(git status --porcelain)" ]' diff --git a/templates/gitignore/standard.gitignore b/templates/gitignore/standard.gitignore index 53fc2c3..e73aad1 100644 --- a/templates/gitignore/standard.gitignore +++ b/templates/gitignore/standard.gitignore @@ -18,6 +18,7 @@ Thumbs.db !.claude/audits/ !.claude/settings.json !.claude/deploy/ +!.claude/rules/ # re-ignore transients inside the versioned subtrees (the PENDING.json trap) .claude/settings.local.json .claude/agent-memory/