pbm init: warn when .pbm.yml is present but untracked in a git repo #2

Open
opened 2026-08-27 14:36:46 +00:00 by jared · 0 comments
Owner

Context

pbm init now warns when an existing ignore rule matches .pbm.yml (GitignoreManager#warn_if_config_ignored, git check-ignore path). It does not warn for the adjacent failure mode that caused cc-os #510: .pbm.yml present in a git repo but untracked, so it silently never travels with schema migrations.

Tasks

  • In a git repo, after writing .pbm.yml, check git ls-files --error-unmatch .pbm.yml (or equivalent) and warn if untracked
  • Keep non-git behavior unchanged
  • Unit tests for tracked/untracked/non-git paths

Origin

  • Trigger: implementing the pbm-init gitignore-management change in-session (user-approved follow-up)
  • Improvised this session: none
  • Chain: silent untracked .pbm.yml ← warning only checks ignore rules ← DESIGN (lib/pb_mirror/gitignore_manager.rb#config_ignored?)
  • Root candidate: this ticket
## Context `pbm init` now warns when an existing ignore rule matches `.pbm.yml` (GitignoreManager#warn_if_config_ignored, git check-ignore path). It does not warn for the adjacent failure mode that caused cc-os #510: `.pbm.yml` present in a git repo but untracked, so it silently never travels with schema migrations. ## Tasks - [ ] In a git repo, after writing .pbm.yml, check `git ls-files --error-unmatch .pbm.yml` (or equivalent) and warn if untracked - [ ] Keep non-git behavior unchanged - [ ] Unit tests for tracked/untracked/non-git paths ## Origin - Trigger: implementing the pbm-init gitignore-management change in-session (user-approved follow-up) - Improvised this session: none - Chain: silent untracked .pbm.yml ← warning only checks ignore rules ← DESIGN (lib/pb_mirror/gitignore_manager.rb#config_ignored?) - Root candidate: this ticket
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/pb-mirror#2
No description provided.