private void Build(IEnumerable <GitStatusEntry> status) { foreach (var entry in status) { currentPath = entry.Path; currentPathArray = entry.Path.Split('\\'); currentStatus = !gitSettings.ShowEmptyFolders && GitManager.IsEmptyFolderMeta(currentPath) ? FileStatus.Ignored : entry.Status; AddRecursive(0, entries); } }
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); } }