using System.Collections.Generic; using LibGit2Sharp.Core; namespace LibGit2Sharp { /// /// Provides helper overloads to a . /// public static class TreeDefinitionExtensions { /// /// Removes the located at each of the /// specified . /// /// The . /// The paths within this . /// The current . public static TreeDefinition Remove(this TreeDefinition td, IEnumerable treeEntryPaths) { Ensure.ArgumentNotNull(td, "td"); Ensure.ArgumentNotNull(treeEntryPaths, "treeEntryPaths"); foreach (var treeEntryPath in treeEntryPaths) { td.Remove(treeEntryPath); } return td; } } }