由于 libgit2 是一个库,是否有任何现有的 C/C++ 项目依赖于 libgit2 并公开通常的 Git 命令行界面(如 git clone
、 git commit
等)?
最佳答案
您可能会在 中找到更近的地方examples 的文件夹libgit2 项目。
正如 所述README
These examples are a mixture of basic emulation of core Git command line functions and simple snippets demonstrating libgit2 API usage (for use with Docurium). As a whole, they are not vetted carefully for bugs, error handling, and cross-platform compatibility in the same manner as the rest of the code in libgit2, so copy with caution.
That being said, you are welcome to copy code from these examples as desired when using libgit2. They have been released to the public domain, so there are no restrictions on their use.
libgit2 项目的长期目标之一是针对这些示例运行整个 git.git 测试(以确保与核心 git 实现的兼容性),因此它们很有可能会继续发展。
关于libgit2 - 任何基于 libgit2 的本地 git 命令行工具?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30430393/