Exemplo n.º 1
0
 public void Validate()
 {
     if (Repository == null)
     {
         throw new ArgumentException("Repository must not be null");
     }
     if (Commits.Count() < 2)
     {
         throw new ArgumentException("Need at least two commits to merge");
     }
 }
        public void Init(string path)
        {
            Console.WriteLine("로딩중");
            Console.WriteLine(path);
            Repository = new Repository(path);
            PushUrl    = Repository.Network.Remotes.FirstOrDefault().PushUrl;

            if (PushUrl.EndsWith(".git"))
            {
                PushUrl = PushUrl.Replace(".git", "");
            }

            Console.WriteLine("로딩 완료");
            Commits = SearchCommits();
            Console.WriteLine($"Commits Count: {Commits.Count()}");
        }