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

Function _git_ahead_behind

deployments/desktop/shared/agents.py:1380–1386  ·  view source on GitHub ↗
(repo_dir: Path, branch: str)

Source from the content-addressed store, hash-verified

1378 normalized = str(export_format or "markdown").strip().lower()
1379 timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
1380 root = _export_root()
1381
1382 if normalized in {"markdown", "md"}:
1383 output = root / f"paperflow_{user_id or 'all'}_{timestamp}.md"
1384 reports = list_reports(user_id=user_id, days=3650, limit=200).get("reports") or []
1385 wiki_nodes = wiki_db.list_nodes(user_id, limit=200) if user_id else []
1386 filtered_wiki_nodes = _filter_wiki_nodes_for_configured_dir(wiki_nodes)
1387 if filtered_wiki_nodes is not None:
1388 wiki_nodes = filtered_wiki_nodes
1389 lines = [

Callers 1

Calls 1

_git_outputFunction · 0.85

Tested by

no test coverage detected