(repo_dir: Path)
| 1399 | def _ensure_notes_gitignore(repo_dir: Path) -> None: |
| 1400 | ignore_path = repo_dir / ".gitignore" |
| 1401 | existing = ignore_path.read_text(encoding="utf-8").splitlines() if ignore_path.exists() else [] |
| 1402 | needed = ["*.pdf", ".DS_Store", "*.bak-*"] |
| 1403 | next_lines = list(existing) |
| 1404 | for pattern in needed: |
| 1405 | if pattern not in next_lines: |
| 1406 | next_lines.append(pattern) |
no test coverage detected