GitVersion.LibGitExtensions.ExcludingBranches C# (CSharp) Method

ExcludingBranches() public static method

Exclude the given branches (by value equality according to friendly name).
public static ExcludingBranches ( [ branches, [ branchesToExclude ) : IEnumerable
branches [
branchesToExclude [
return IEnumerable
        public static IEnumerable<Branch> ExcludingBranches([NotNull] this IEnumerable<Branch> branches, [NotNull] IEnumerable<Branch> branchesToExclude)
        {
            return branches.Where(b => branchesToExclude.All(bte => !IsSameBranch(b, bte)));
        }

Same methods

LibGitExtensions::ExcludingBranches ( [ branches, [ branchesToExclude ) : IEnumerable