public GitFileSystemParams(GitRepository repository, string?commitId = null) : base(PathParser.GetInstance(FileSystemStyle.Linux), FileSystemMode.ReadOnly) { this.Repository = repository; if (commitId._IsEmpty()) { commitId = repository.OriginMasterBranchCommitId; } this.CommitId = commitId; }
public VirtualFileSystemParams(FileSystemMode mode = FileSystemMode.Default) : base(PathParser.GetInstance(FileSystemStyle.Linux), mode) { }
public RewriteViewFileSystemParam(FileSystem underlayFileSystem, FileSystemMode mode = FileSystemMode.Default) : base(underlayFileSystem, underlayFileSystem.PathParser.Style == FileSystemStyle.Windows ? PathParser.GetInstance(FileSystemStyle.Mac) : underlayFileSystem.PathParser, mode) // Use the Mac OS X path parser if the underlay file system is Windows { }
public RewriteFileSystemParam(FileSystem underlayFileSystem, FileSystemMode mode = FileSystemMode.Default, bool disposeUnderlay = false) : base(underlayFileSystem, underlayFileSystem.PathParser.Style == FileSystemStyle.Windows ? PathParser.GetInstance(FileSystemStyle.Mac) : underlayFileSystem.PathParser, mode, disposeUnderlay) // Use the Mac OS X path parser if the underlay file system is Windows { }