libgit2 - 任何基于 libgit2 的本地 git 命令行工具?

标签 libgit2

由于 libgit2 是一个库,是否有任何现有的 C/C++ 项目依赖于 libgit2 并公开通常的 Git 命令行界面(如 git clonegit 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/

相关文章:

c - 使用 libgit2 获取自最后一个标签以来的提交次数

windows - 是否有人使用 libgit2、libgit2sharp、Ngit 来替代 msysgit 的 Windows?

libgit2(获取、合并和提交)

c - 使用 libgit2 在一次提交中重命名和更新树条目

c# - 如何在 LibGit2Sharp 中执行 git diff --name-status origin/master...HEAD ?

c++ - Libgit2 - 无法验证 SSH session : Unable to open public key file

c# - 如何使用个人访问 token 进行 Libgit2sharp 身份验证

python - pygit2 Blob 历史

git - 通过 LibGit2Sharp 使用 git 命令指定选项

git - 在 Libgit2sharp 中,有什么方法可以恢复某些文件的更改(未提交)?