private void Pull() { string nameProject = "", nickNameAutor = "", version = ""; Console.Write("Project name : "); nameProject = Console.ReadLine(); Console.Write("Autor nick : "); nickNameAutor = Console.ReadLine(); Console.Write("Version : "); version = Console.ReadLine(); GitC.Commit commit = controller.Pull(controller.GetProject(nameProject, nickNameAutor), version); string filename = commit.Project.ToString() + "_" + commit.Number + "_" + commit.Date + ".commit"; File.WriteAllLines(filename, commit.Code.Split('^')); }
public override Task <IssuePullResponse> PullRequest(IssuePullRequest request, ServerCallContext ctx) { _log.Info("gRpc request for: PullRequest"); return(Task.FromResult(GitController.Pull())); }
public void OnPushPullButton () { git.Pull(); UpdateLog(0); }