Expand description
Gitignore management for Ralph initialization.
Responsibilities:
- Ensure
.ralph/workspaces/is in.gitignoreto prevent dirty repo issues. - Ensure
.ralph/logs/is in.gitignoreto prevent committing unredacted debug logs. - Provide idempotent updates to
.gitignore.
Not handled here:
- Reading or parsing existing
.gitignorepatterns (only simple line-based checks). - Global gitignore configuration (only repo-local
.gitignore).
Invariants/assumptions:
- Updates are additive only (never removes entries).
- Safe to run multiple times (idempotent).
Functionsยง
- ensure_
ralph_ gitignore_ entries - Ensures Ralph-specific entries exist in
.gitignore. - migrate_
json_ to_ jsonc_ gitignore - Migrate .json ignore patterns to .jsonc in .gitignore.