public FormDsicard(string szSolutionName, List<string> FileList, CGitManager objGitMgr) { InitializeComponent(); _objGitMgr = objGitMgr; _szSolutionName = szSolutionName; _lstAllFiles = FileList; _hashAllFiles = new Hashtable(); foreach (string szItem in FileList) { FileSccStatus status = _objGitMgr.GetFileStatus(szItem); if (status==FileSccStatus.ST_NEW_STAGED||status==FileSccStatus.ST_STAGE_MODIFIED) { _hashAllFiles.Add(szItem,"Index"); } else if(status==FileSccStatus.ST_CHECKIN_MODIFIED) { _hashAllFiles.Add(szItem,"Repos"); } else if (status==FileSccStatus.ST_MODIFY_STAGED_MODIFY||status==FileSccStatus.ST_MODIFY_STAGED) { _hashAllFiles.Add(szItem, "Both"); } else { continue; } } if (_hashAllFiles.Count <= 0) bUsShortFileName = true; }
public FormDelete(string szSolutionName, List<string> FileList, CGitManager objGitMgr) { InitializeComponent(); _objGitMgr = objGitMgr; _szSolutionName = szSolutionName; _lstAllFiles = FileList; _hashAllFiles = new Hashtable(); foreach (string szItem in FileList) { FileSccStatus status = _objGitMgr.GetFileStatus(szItem); if (status == FileSccStatus.ST_NOT_CONTROLLED||status == FileSccStatus.ST_IGNORED) { _hashAllFiles.Add(szItem, "Untracked"); } else if (status == FileSccStatus.ST_RENMAE||status == FileSccStatus.ST_CONFLICT) { _hashAllFiles.Add(szItem, "Unkonown"); //this satus need to decide later --by fengzheng } else if (status == FileSccStatus.ST_DELETE||status == FileSccStatus.ST_NULL) { continue; } else { _hashAllFiles.Add(szItem, "Tracked"); } } }