Example #1
0
        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;
        }
Example #2
0
        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,
            });
        }
Example #3
0
 public void AddFile(TreeFileData file)
 {
     Files.Add(file);
 }
Example #4
0
        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;
        }
Example #5
0
        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,
            };
        }
Example #6
0
 public void AddFile(TreeFileData file)
 {
     _files.Add(file);
 }