MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _notes_git_remote

Function _notes_git_remote

deployments/desktop/shared/agents.py:1401–1403  ·  view source on GitHub ↗
(repo_dir: Path)

Source from the content-addressed store, hash-verified

1399def _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)

Callers 1

Tested by

no test coverage detected