Esempio n. 1
0
        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('^'));
        }
Esempio n. 2
0
 public override Task <IssuePullResponse> PullRequest(IssuePullRequest request, ServerCallContext ctx)
 {
     _log.Info("gRpc request for: PullRequest");
     return(Task.FromResult(GitController.Pull()));
 }
Esempio n. 3
0
	public void OnPushPullButton ()
	{
        git.Pull();
        UpdateLog(0);
	}