Exemple #1
0
        public bool AddCommit(ICommit commit)
        {
            if (commit is GitCommit gitCommit)
            {
                Commits.AddFirst(gitCommit);
                return(true);
            }

            Console.WriteLine("Only Git commits can be added to a git branch!");
            return(false);
        }