示例#1
0
            internal void Build(IEnumerable <GitStatusEntry> status, IEnumerable <GitStatusSubModuleEntry> subModules)
            {
                foreach (var entry in status)
                {
                    currentProjectPath = gitManager.ToProjectPath(entry.LocalPath);
                    currentPathArray   = currentProjectPath.Split('\\');
                    currentStatus      = !gitSettings.ShowEmptyFolders && gitManager.IsEmptyFolderMeta(currentProjectPath) ? FileStatus.Ignored : entry.Status;
                    if (cullNonAssetPaths && !UniGitPathHelper.IsPathInAssetFolder(currentProjectPath) && !UniGitPathHelper.IsPathInPackagesFolder(currentProjectPath))
                    {
                        continue;
                    }
                    AddRecursive(0, entries);
                }

                foreach (var module in subModules)
                {
                    currentPathArray       = UniGitPathHelper.Combine(paths.RepoProjectRelativePath, module.Path).Split('\\');
                    currentSubModuleStatus = module.Status;
                    AddSubModuleRecursive(0, entries);
                }
            }