Show HN: Pgit – A Git-like CLI backed by PostgreSQL
a day ago
- #code-analysis
- #postgresql
- #version-control
- pgit is a Git-like CLI tool backed by PostgreSQL, offering SQL queryable git history.
- Features include delta compression, built-in analyses (coupling, churn, hotspots), and raw SQL access.
- Benchmarked against git gc --aggressive, pgit outperformed in 12 out of 20 repositories.
- Use cases include codebase analysis, AI agent integration, and custom SQL queries.
- AI agents can leverage pgit for automated codebase health reports.
- pgit is not a git replacement but enhances understanding of codebase history.