Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WalkHistory(repo.HEAD.Commit); // Walk history from HEAD
- WalkHistory(repo.Branches["experimental"].Commit); // Walk history from branch
- private void WalkHistory(Commit commit)
- {
- Console.WriteLine("SHA: " + commit.SHA);
- Console.WriteLine("Committed on: " + commit.CommittedDate);
- Console.WriteLine("By: " + commit.Committer);
- if (commit.HasParents)
- {
- foreach(Commit parent in commit.Parent)
- WalkHistory(parent);
- }
- }
Add Comment
Please, Sign In to add comment