コード例 #1
0
        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;
        }
コード例 #2
0
 public VirtualFileSystemParams(FileSystemMode mode = FileSystemMode.Default) : base(PathParser.GetInstance(FileSystemStyle.Linux), mode)
 {
 }
コード例 #3
0
 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
 {
 }
コード例 #4
0
 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
 {
 }