break;\r
case IDSVNLC_EXPLORE:\r
{\r
- ShellExecute(this->m_hWnd, _T("explore"), filepath->GetWinPath(), NULL, NULL, SW_SHOW);\r
+ ShellExecute(this->m_hWnd, _T("explore"), filepath->GetDirectory().GetWinPath(), NULL, NULL, SW_SHOW);\r
}\r
break;\r
case IDSVNLC_COMPARE:\r
// 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
return 0;\r
}\r
+\r
+void CGitStatusListCtrl::Clear()\r
+{\r
+ m_FileLoaded=0;\r
+ this->DeleteAllItems();\r
+ this->m_arListArray.clear();\r
+ this->m_arStatusArray.clear();\r
+ this->m_changelists.clear();\r
+}\r
//////////////////////////////////////////////////////////////////////////\r
#if 0\r
bool CGitStatusListCtrlDropTarget::OnDrop(FORMATETC* pFmtEtc, STGMEDIUM& medium, DWORD * /*pdwEffect*/, POINTL pt)\r