To test this I built gitgres, about 2,000 lines of C implementing the libgit2 git_odb_backend and git_refdb_backend interfaces against Postgres through libpq, plus roughly 200 lines of PL/pgSQL for the storage functions. libgit2 handles pack negotiation, delta resolution, ref advertisement, and the transport protocol while the backend reads and writes against the two tables, and a git remote helper (git-remote-gitgres) lets you add a Postgres-backed remote to any repo and push or clone with a normal git client that has no idea it’s talking to a database. There’s a Dockerfile in the repo if you want to try it out without building libgit2 and libpq from source.
Amazon’s Fire TV Stick 4K Plus is on sale for $29.99, which is $5 shy of its best price. | Image: Amazon
,详情可参考搜狗输入法2026
Creating a decentralised site reliant on moderators has also proved problematic at times.
Андрей Ставицкий (Редактор отдела «Наука и техника»)
更多详细新闻请浏览新京报网 www.bjnews.com.cn