public static void UpdateTreeFile(TreeFile treeFile, TreeFileData treeFileData) { Verify.Argument.IsNotNull(treeFile, "treeFile"); Verify.Argument.IsNotNull(treeFileData, "treeFileData"); treeFile.ConflictType = treeFileData.ConflictType; treeFile.Status = treeFileData.FileStatus; treeFile.StagedStatus = treeFileData.StagedStatus; }
public static TreeFile CreateTreeFile(Repository repository, TreeFileData treeFileData) { Verify.Argument.IsNotNull(repository, "repository"); Verify.Argument.IsNotNull(treeFileData, "treeFileData"); var shortName = treeFileData.ShortName.Length == 0 ? GetShortName(treeFileData.Name) : treeFileData.ShortName; return(new TreeFile(repository, treeFileData.Name, null, treeFileData.FileStatus, shortName) { ConflictType = treeFileData.ConflictType, StagedStatus = treeFileData.StagedStatus, }); }
public void AddFile(TreeFileData file) { Files.Add(file); }
public static TreeFile CreateTreeFile(Repository repository, TreeFileData treeFileData) { Verify.Argument.IsNotNull(repository, "repository"); Verify.Argument.IsNotNull(treeFileData, "treeFileData"); var shortName = treeFileData.ShortName.Length == 0 ? GetShortName(treeFileData.Name) : treeFileData.ShortName; return new TreeFile(repository, treeFileData.Name, null, treeFileData.FileStatus, shortName) { ConflictType = treeFileData.ConflictType, StagedStatus = treeFileData.StagedStatus, }; }
public void AddFile(TreeFileData file) { _files.Add(file); }