libgit2 - 如何使用libgit2运行 "git log filename"?

标签 libgit2

我在 git_revwalk_new/git_revwalk_push 中找不到任何指定文件名的选项,那么如何检索指定文件的所有修订版本?

最佳答案

您应该能够从 log.c example 中找到灵感在 libgit2 中。

更准确地说,您需要正常执行 revwalk,并且 perform the path filtering使用git_pathspec_match_tree在每个提交的树上。

关于libgit2 - 如何使用libgit2运行 "git log filename"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50112803/

相关文章:

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

git - 创建基于ssh的远程路径

c - 如何推送(使用 libgit2)

git - Visual Studio 2013 RC 和源代码控制

c++ - 如何使用 LibGit2 C++ 列出分支?

c# - 限制在 LibGit2Sharp 中查询的提交数量?

Git2go - pull && merge

c - 如何使用 libgit2 创建空提交?

git - Gig2go : unpacking the sent packfile failed on the remote

c++ - 首次设置凭据 (libgit2)