// brown : missing, deleted, replaced\r
// green : merged (or potential merges)\r
// red : conflicts or sure conflicts\r
- if(entry->m_Action & CTGitPath::LOGACTIONS_UNMERGED)\r
+ if(entry->m_Action & CTGitPath::LOGACTIONS_GRAY)\r
+ {\r
+ crText = RGB(128,128,128);\r
+\r
+ }else if(entry->m_Action & CTGitPath::LOGACTIONS_UNMERGED)\r
{\r
crText = m_Colors.GetColor(CColors::Conflict);\r
\r
m_arStatusArray.clear();\r
for(int i=0;i<list.GetCount();i++)\r
{\r
- CTGitPath * gitpatch=(CTGitPath*)&list[i];\r
- gitpatch->m_Checked = TRUE;\r
+ CTGitPath * gitpath=(CTGitPath*)&list[i];\r
+ \r
+ if(gitpath ->m_Action & CTGitPath::LOGACTIONS_HIDE)\r
+ continue;\r
+\r
+ gitpath->m_Checked = TRUE;\r
m_arStatusArray.push_back((CTGitPath*)&list[i]);\r
}\r
return 0;\r
\r
//DialogEnableWindow(IDC_GETALL, FALSE);\r
//DialogEnableWindow(IDC_SHOWWHOLEPROJECT, FALSE);\r
- DialogEnableWindow(IDC_INCLUDEMERGE, FALSE);\r
+ //DialogEnableWindow(IDC_INCLUDEMERGE, FALSE);\r
DialogEnableWindow(IDC_STATBUTTON, FALSE);\r
DialogEnableWindow(IDC_REFRESH, FALSE);\r
DialogEnableWindow(IDC_HIDEPATHS,FALSE);\r
DialogEnableWindow(IDC_SHOWWHOLEPROJECT, TRUE);\r
\r
DialogEnableWindow(IDC_GETALL, TRUE);\r
- //DialogEnableWindow(IDC_INCLUDEMERGE, TRUE);\r
+ DialogEnableWindow(IDC_INCLUDEMERGE, TRUE);\r
DialogEnableWindow(IDC_STATBUTTON, TRUE);\r
DialogEnableWindow(IDC_REFRESH, TRUE);\r
+ DialogEnableWindow(IDC_HIDEPATHS,TRUE);\r
\r
// PostMessage(WM_TIMER, LOGFILTER_TIMER);\r
GetDlgItem(IDC_PROGRESS)->ShowWindow(FALSE);\r
m_ProjectProperties.FindBugID(pLogEntry->m_Body, pMsgView);\r
CAppUtils::FormatTextInRichEditControl(pMsgView);\r
\r
+ int HidePaths=m_cHidePaths.GetState() & 0x0003;\r
+ CString matchpath=this->m_path.GetGitPathString();\r
+\r
+ for(int i=0;i<pLogEntry->m_Files.GetCount() && (!matchpath.IsEmpty());i++)\r
+ {\r
+ ((CTGitPath&)pLogEntry->m_Files[i]).m_Action &= ~(CTGitPath::LOGACTIONS_HIDE|CTGitPath::LOGACTIONS_GRAY);\r
+ \r
+ if(pLogEntry->m_Files[i].GetGitPathString().Left(matchpath.GetLength()) != matchpath)\r
+ {\r
+ if(HidePaths==BST_CHECKED)\r
+ ((CTGitPath&)pLogEntry->m_Files[i]).m_Action |= CTGitPath::LOGACTIONS_HIDE;\r
+ if(HidePaths==BST_INDETERMINATE)\r
+ ((CTGitPath&)pLogEntry->m_Files[i]).m_Action |= CTGitPath::LOGACTIONS_GRAY;\r
+ }\r
+ }\r
m_ChangedFileListCtrl.UpdateWithGitPathList(pLogEntry->m_Files);\r
m_ChangedFileListCtrl.m_CurrentVersion=pLogEntry->m_CommitHash;\r
m_ChangedFileListCtrl.Show(SVNSLC_SHOWVERSIONED);\r
m_ChangedFileListCtrl.SetRedraw(TRUE);\r
return;\r
}\r
-#if 0\r
- // fill in the changed files list control\r
- if ((m_cHidePaths.GetState() & 0x0003)==BST_CHECKED)\r
- {\r
- m_CurrentFilteredChangedArray.RemoveAll();\r
- for (INT_PTR c = 0; c < m_currentChangedArray->GetCount(); ++c)\r
- {\r
- LogChangedPath * cpath = m_currentChangedArray->GetAt(c);\r
- if (cpath == NULL)\r
- continue;\r
- if (m_currentChangedArray->GetAt(c)->sPath.Left(m_sRelativeRoot.GetLength()).Compare(m_sRelativeRoot)==0)\r
- {\r
- m_CurrentFilteredChangedArray.Add(cpath);\r
- }\r
- }\r
- m_currentChangedArray = &m_CurrentFilteredChangedArray;\r
- }\r
-#endif\r
+\r
}\r
else\r
{\r