public bool AddCommit(string commit) { if (!commits.Contains(commit)) { commits.Add(commit); } else { return false; } return true; }