Content-level diffs, three-way merge, and blame stay in libgit2 rather than being reimplemented in SQL, since libgit2 already has that support and works against the Postgres backends through cgo bindings. The Forgejo fork would be “replace modules/git with libgit2 backed by Postgres” rather than “replace modules/git with raw SQL,” because the read-side queries only cover the simple cases and anything involving content comparison or graph algorithms still needs libgit2 doing the work with Postgres as its storage layer. That’s a meaningful dependency to carry, though libgit2 is well-maintained and already used in production by the Rust ecosystem and various GUI clients. SQL implementations of some of this using recursive CTEs would be interesting to try eventually but aren’t needed to get a working forge. The remaining missing piece is the server-side pack protocol: the remote helper covers the client side, but a Forgejo integration also needs a server that speaks upload-pack and receive-pack against Postgres, either through libgit2’s transport layer or a Go implementation that queries the objects table directly.
Екатерина Грищенко (старший редактор отдела «Бывший СССР»)
,详情可参考heLLoword翻译官方下载
Article InformationAuthor, 本·哈頓(Ben Hatton)。旺商聊官方下载对此有专业解读
�@���̈��A�̗����ɂ��āA���w�ق́u���H�ꎁ�́A�w�V�����x�̍��҂ł����R�{�͈ꎁ�Ɠ����l���ł��v�ƔF�߂��B�����āu�{���ł����Ό����҂Ƃ��ċN�p���ׂ��ł͂����܂����ł����B�����������Q�ɑ����ꂽ���ɑ��A�S���肨�l�ѐ\���グ�܂��B�ҏW���Ƃ��ĐӔC���d���~�߂Ă����܂��v�ƎӍ߂��Ă����B