c++ - 有没有办法如何在 C++ 中使用 libgit2 计算远程存储库上的提交?

标签 c++ git-commit libgit2

我想计算远程存储库上的提交数,因为我想将它与本地克隆中的提交数进行比较。有没有办法得到那个计数?

最佳答案

你可以引用。至 git_reflog_entrycount .

关于c++ - 有没有办法如何在 C++ 中使用 libgit2 计算远程存储库上的提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42367079/

相关文章:

c++ - Hadoop流C++ getTaskId

json - 仅获取 json 中每个提交的内容? (git 差异 json)

git - 如何删除 git commit 默认模板消息?

git - Vim 在作为子进程调用时忘记了如何使用左箭头键。怎么修?

python - 在 Mac 上的 Python virtualenv 中安装 pygit2/libgit2

c++ - CMake 错误 : CMake was unable to find a build program corresponding to "MinGW Makefiles"

c++ - .h 文件在 eclipse 中被划掉并变灰

c++ - const 指针(不是指向 const 的指针)和引用之间的功能区别是什么?

cmake - 使用 libssh2 的 libgit2 cmake 问题 :LIBSSH2 not found. 如果安装在默认搜索路径之外,请设置 CMAKE_PREFIX_PATH

git - 在 git2go (libgit2) 中查找包含指定 blob 对象的提交