public void CreateBranch (string name, string trackSource) { var create = new NGit.Api.Git (RootRepository).BranchCreate (); if (!String.IsNullOrEmpty (trackSource)) create.SetStartPoint (trackSource); create.SetName (name); create.Call (); }
public void CreateBranchFromCommit (string name, RevCommit id) { var create = new NGit.Api.Git (RootRepository).BranchCreate (); if (id != null) create.SetStartPoint (id); create.SetName (name); create.Call (); }