You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using(varrepo=newRepository("path/to/your/repo")){varfilter=newCommitFilter{SortBy=CommitSortStrategies.Topological|CommitSortStrategies.Reverse};foreach(Commitcinrepo.Commits.QueryBy(filter)){Console.WriteLine(c.Id);// Of course the output can be prettified ;-)}}
Show only commits between two named commits
Git
$ git log master..development
LibGit2Sharp
using(varrepo=newRepository("path/to/your/repo")){varfilter=newCommitFilter{Since=repo.Branches["master"],Until=repo.Branches["development"]};foreach(Commitcinrepo.Commits.QueryBy(filter)){Console.WriteLine(c.Id);// Of course the output can be prettified ;-)}}