-
Notifications
You must be signed in to change notification settings - Fork 896
git log
nulltoken edited this page May 26, 2011
·
14 revisions
$ git log -15
using (var repo = new Repository("path/to/your/repo"))
{
foreach (Commit c in repo.Commits.Take(15))
{
Console.WriteLine(c.Id); // Of course the output can be prettified ;-)
}
}
$ git log --topo-order --reverse
using (var repo = new Repository("path/to/your/repo"))
{
var filter = new Filter { SortBy = GitSortOptions.Topological | GitSortOptions.Reverse };
foreach (Commit c in repo.Commits.QueryBy(filter))
{
Console.WriteLine(c.Id); // Of course the output can be prettified ;-)
}
}
$ git log master..development
using (var repo = new Repository("path/to/your/repo"))
{
var filter = new Filter { Since = repo.Branches["master"], Until = repo.Branches["development"] };
foreach (Commit c in repo.Commits.QueryBy(filter))
{
Console.WriteLine(c.Id); // Of course the output can be prettified ;-)
}
}