我试图用LibGit2Sharp重建的git show-brach --independent的功能,它根据docs做到这一点:Among the <reference>s given, display only the ones that cannot be reached from any other <reference>. 我最好的尝试,到目前为止是这样的: List<Commit> Ge
我在我的Ubuntu 16.04机器上创建了libgit2,并且一切都很正常。我在/examples目录跑make,当我尝试运行./log我得到以下几点: ./log: error while loading shared libraries: libgit2.so.26: cannot open shared object file: No such file or directory 但是,在
我正试图在两个分支之间实现一个简单的结帐操作。代码执行没有错误。 git_libgit2_init();
git_object *treeish = NULL;
git_checkout_options opts;
opts.checkout_strategy = GIT_CHECKOUT_SAFE;
/* branchName in this case is "master" */