We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$ git merge-base oneCommit secondCommit
public string GetMergeBase(string a, string b) { using (var repo = new Repository("path/to/your/repo")) { var aCommit = Repository.Commits.First(c => c.Sha == a); var bCommit = Repository.Commits.First(c => c.Sha == b); return repo .Commits.FindCommonAncestor(aCommit, bCommit).Sha; } }
There was an error while loading. Please reload this page.