private IReadOnlyCollection<string> UpdatePaths(IEnumerable<string> paths, ICurrentWorkingDirectory cwd) { return paths.Select(p => cwd.CreateRelativePath(Path.GetFullPath(Path.Combine(GitDir, "..", p)))) .ToList() .AsReadOnly(); }
private IReadOnlyCollection <string> UpdatePaths(IEnumerable <string> paths, ICurrentWorkingDirectory cwd) { return(paths.Select(p => cwd.CreateRelativePath(Path.GetFullPath(Path.Combine(GitDir, "..", p)))) .ToList() .AsReadOnly()); }