AutoMerge.BranchesViewModel.GetPendingChangesByFile C# (CSharp) Méthode

GetPendingChangesByFile() private static méthode

private static GetPendingChangesByFile ( List mergeRelationships, string targetBranch, Microsoft.TeamFoundation.VersionControl.Client.Workspace workspace ) : List
mergeRelationships List
targetBranch string
workspace Microsoft.TeamFoundation.VersionControl.Client.Workspace
Résultat List
        private static List<PendingChange> GetPendingChangesByFile(List<MergeRelation> mergeRelationships, string targetBranch, Workspace workspace)
        {
            var itemSpecs = new List<ItemSpec>();
            foreach (var mergeRelationship in mergeRelationships)
            {
                if (mergeRelationship.Target.StartsWith(targetBranch))
                {
                    var recursionType = CalculateRecursionType(mergeRelationship);
                    itemSpecs.Add(new ItemSpec(mergeRelationship.Target, recursionType));
                }
            }
            return workspace.GetPendingChanges(itemSpecs.ToArray()).ToList();
        }