OSDN Git Service

Fix current branch have not update when reset\switch in git log dialog
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / GitLogListAction.cpp
index 556be8c..34833c5 100644 (file)
@@ -159,26 +159,22 @@ void CGitLogList::ContextMenuAction(int cmd,int FirstSelect, int LastSelect)
                        break;\r
                case ID_CREATE_BRANCH:\r
                        CAppUtils::CreateBranchTag(FALSE,&pSelLogEntry->m_CommitHash);\r
-                       m_HashMap.clear();\r
-                       g_Git.GetMapHashToFriendName(m_HashMap);\r
+                       ReloadHashMap();\r
                        Invalidate();                   \r
                        break;\r
                case ID_CREATE_TAG:\r
                        CAppUtils::CreateBranchTag(TRUE,&pSelLogEntry->m_CommitHash);\r
-                       m_HashMap.clear();\r
-                       g_Git.GetMapHashToFriendName(m_HashMap);\r
+                       ReloadHashMap();\r
                        Invalidate();\r
                        break;\r
                case ID_SWITCHTOREV:\r
                        CAppUtils::Switch(&pSelLogEntry->m_CommitHash);\r
-                       m_HashMap.clear();\r
-                       g_Git.GetMapHashToFriendName(m_HashMap);\r
+                       ReloadHashMap();\r
                        Invalidate();\r
                        break;\r
                case ID_RESET:\r
                        CAppUtils::GitReset(&pSelLogEntry->m_CommitHash);\r
-                       m_HashMap.clear();\r
-                       g_Git.GetMapHashToFriendName(m_HashMap);\r
+                       ReloadHashMap();\r
                        Invalidate();\r
                        break;\r
                default:\r