OSDN Git Service

Fix current branch have not update when reset\switch in git log dialog
authorFrank Li <lznuaa@gmail.com>
Fri, 6 Feb 2009 15:45:53 +0000 (23:45 +0800)
committerFrank Li <lznuaa@gmail.com>
Fri, 6 Feb 2009 15:45:53 +0000 (23:45 +0800)
Signed-off-by: Frank Li <lznuaa@gmail.com>
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
                        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
                        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
                        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
                        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
                        Invalidate();\r
                        break;\r
                default:\r