我想查看自用戶最後一次從他們的機器推送以來的所有提交。 using (var repo = new Repository(repositoryDirectory))
{
var c = repo.Lookup<Commit>(shaHashOfCommit);
// Let's only consider the refs that lead to this commit.
我試圖用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" */