/// <summary> /// Sets colors for branches. Colors are chosen randomly from the list of allowed branch colors. /// </summary> private void SetBranchColors(LibGit2Sharp.BranchCollection branches) { foreach (LibGit2Sharp.Branch branch in branches) { BranchColors.Add(branch.Name, AllowedBranchColors.ElementAt(branchColorIndex++)); if (branchColorIndex == AllowedBranchColors.Count) { branchColorIndex = 0; } } }
internal BranchCollection(LibGit2Sharp.BranchCollection collection) => this.innerCollection = collection;