Add the Git excludes step #66

Closed
opened 2026-10-08 07:42:06 +02:00 by Tirsvad · 1 comment
Owner

Move the work of exclude_env_file (src/lib/envfile.sh) into a helper that adds a list of entries to .git/info/exclude: one comment line, a fresh line first, no entry that git check-ignore already reports, a check afterwards. exclude_env_file keeps its behavior and uses it. Add a function in src/lib/framework.sh that excludes /.claude, /.agents and /AGENTS.md, called from create_all (src/lib/apply.sh) after copy_templates, with its own label in PLAN_STEPS (src/lib/constants.sh) and a line in the dry-run plan (src/lib/plan.sh). It is skipped when is_framework_skipped and it names any path git tracks. Step 9 of [UC-001] and P12 of [OC-001].

Phase: MIL-009
Reference: [UC-001]

Move the work of `exclude_env_file` (`src/lib/envfile.sh`) into a helper that adds a list of entries to `.git/info/exclude`: one comment line, a fresh line first, no entry that `git check-ignore` already reports, a check afterwards. `exclude_env_file` keeps its behavior and uses it. Add a function in `src/lib/framework.sh` that excludes `/.claude`, `/.agents` and `/AGENTS.md`, called from `create_all` (`src/lib/apply.sh`) after `copy_templates`, with its own label in `PLAN_STEPS` (`src/lib/constants.sh`) and a line in the dry-run plan (`src/lib/plan.sh`). It is skipped when `is_framework_skipped` and it names any path git tracks. Step 9 of [UC-001] and P12 of [OC-001]. Phase: MIL-009 Reference: [UC-001]
Tirsvad added this to the MIL-009 Framework Files Excluded from Git milestone 2026-10-08 07:42:06 +02:00
Author
Owner

The "Git excludes" step was merged to main in #71 (code in 4058ab4, merge e9872fa). The full test suite passed with it: 1143 checks, 0 failed, 0 static checks failed. Closing by hand because #71 was merged with Refs #66. The tests for the step are task #68.

The "Git excludes" step was merged to `main` in #71 (code in 4058ab4, merge e9872fa). The full test suite passed with it: 1143 checks, 0 failed, 0 static checks failed. Closing by hand because #71 was merged with `Refs #66`. The tests for the step are task #68.
Sign in to join this conversation.