示例#1
0
 public RepositoryStatus(Repository repository, RepositoryStatusOptions options)
 {
     Repository = repository;
     Options    = options;
     _root_path = string.Empty;
     _recursive = true;
     Update();
 }
示例#2
0
 internal RepositoryStatus(Repository repository, RepositoryStatusOptions options, string singleFile, string rootDir, bool recursive)
 {
     Repository = repository;
     Options    = options ?? new RepositoryStatusOptions {
         ForceContentCheck = true
     };
     IgnoreHandler = new IgnoreHandler(Repository);
     _root_path    = Repository.ToGitPath(rootDir);
     _recursive    = recursive;
     _file_path    = Repository.ToGitPath(singleFile);
     Update();
 }
示例#3
0
 internal RepositoryStatus(Repository repository, RepositoryStatusOptions options, string singleFile, string rootDir, bool recursive)
 {
     Repository = repository;
     Options = options ?? new RepositoryStatusOptions { ForceContentCheck = true };
     IgnoreHandler = new IgnoreHandler(Repository);
     _root_path = Repository.ToGitPath (rootDir);
     _recursive = recursive;
     _file_path = Repository.ToGitPath (singleFile);
     Update();
 }
示例#4
0
 public RepositoryStatus(Repository repository, RepositoryStatusOptions options)
 {
     Repository = repository;
     Options = options;
     _root_path = string.Empty;
     _recursive = true;
     Update();
 }
示例#5
0
 public RepositoryStatus GetFileStatus(string path, RepositoryStatusOptions options)
 {
     return(new RepositoryStatus(this, options, path, null, false));
 }
示例#6
0
 public RepositoryStatus GetDirectoryStatus(string path, bool recursive, RepositoryStatusOptions options)
 {
     return(new RepositoryStatus(this, options, null, path, recursive));
 }
示例#7
0
 public RepositoryStatus GetStatus(RepositoryStatusOptions options)
 {
     return(new RepositoryStatus(this, options, null, "", true));
 }
示例#8
0
 public RepositoryStatus(Repository repository, RepositoryStatusOptions options)
 {
     Repository = repository;
     Options = options;
     Update();
 }