我想计算远程存储库上的提交数,因为我想将它与本地克隆中的提交数进行比较。有没有办法得到那个计数?
最佳答案
你可以引用。至 git_reflog_entrycount .
关于c++ - 有没有办法如何在 C++ 中使用 libgit2 计算远程存储库上的提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42367079/
标签 c++ git-commit libgit2
我想计算远程存储库上的提交数,因为我想将它与本地克隆中的提交数进行比较。有没有办法得到那个计数?
最佳答案
你可以引用。至 git_reflog_entrycount .
关于c++ - 有没有办法如何在 C++ 中使用 libgit2 计算远程存储库上的提交?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42367079/
相关文章:
json - 仅获取 json 中每个提交的内容? (git 差异 json)
git - Vim 在作为子进程调用时忘记了如何使用左箭头键。怎么修?
python - 在 Mac 上的 Python virtualenv 中安装 pygit2/libgit2
c++ - CMake 错误 : CMake was unable to find a build program corresponding to "MinGW Makefiles"
c++ - const 指针(不是指向 const 的指针)和引用之间的功能区别是什么?
cmake - 使用 libssh2 的 libgit2 cmake 问题 :LIBSSH2 not found. 如果安装在默认搜索路径之外,请设置 CMAKE_PREFIX_PATH