if (bRet)\r
CShellUpdater::Instance().AddPathsForUpdate(pathList);\r
#endif\r
- int key=CMessageBox::Show(hwndExplorer, _T("File will removed from version control\r\n Do you want to keep local copy"), _T("TortoiseGit"), MB_ICONINFORMATION|MB_YESNOCANCEL);\r
- if(key == IDCANCEL)\r
- return FALSE;\r
+\r
+ //we don't ask user about if keep local copy. \r
+ //because there are command "Delete(keep local copy)" at explore context menu \r
+ //int key=CMessageBox::Show(hwndExplorer, _T("File will removed from version control\r\n Do you want to keep local copy"), _T("TortoiseGit"), MB_ICONINFORMATION|MB_YESNOCANCEL);\r
+ //if(key == IDCANCEL)\r
+ int key;\r
\r
CString format;\r
- if(key == IDNO)\r
- format=_T("git.exe rm -r -f \"%s\"");\r
\r
- if(key == IDYES)\r
+ if(parser.HasKey(_T("keep")))\r
+ {\r
format= _T("git.exe update-index --force-remove -- \"%s\"");\r
+ }else\r
+ {\r
+ format=_T("git.exe rm -r -f \"%s\"");\r
+ }\r
\r
CString output;\r
CString cmd;\r
if (GetSelectedCount() == 1)\r
{\r
CString str;\r
- str.Format(_T("Rebase %s to this"),g_Git.GetCurrentBranch());\r
+ str.Format(_T("*Rebase %s to this"),g_Git.GetCurrentBranch());\r
\r
if(pSelLogEntry->m_CommitHash != m_HeadHash)\r
if(m_ContextMenuMask&GetContextMenuBit(ID_REBASE_TO_VERSION))\r
hash=hash.Left(40);\r
GitRev* pLastEntry = reinterpret_cast<GitRev*>(m_arShownList.GetAt(LastSelect));\r
if(pLastEntry->m_CommitHash == hash)\r
- popup.AppendMenuIcon(ID_COMBINE_COMMIT,_T("Combine to one commit"),IDI_MERGE);\r
+ popup.AppendMenuIcon(ID_COMBINE_COMMIT,_T("*Combine to one commit"),IDI_MERGE);\r
}\r
}\r
if (m_hasWC)\r