From: Frank Li Date: Fri, 6 Feb 2009 15:45:53 +0000 (+0800) Subject: Fix current branch have not update when reset\switch in git log dialog X-Git-Url: http://git.sourceforge.jp/view?p=tortoisegit%2FTortoiseGitJp.git;a=commitdiff_plain;h=51e332334b9c66c3b536c945a36db2d78ab16436;ds=sidebyside Fix current branch have not update when reset\switch in git log dialog Signed-off-by: Frank Li --- diff --git a/src/TortoiseProc/GitLogListAction.cpp b/src/TortoiseProc/GitLogListAction.cpp index 556be8c..34833c5 100644 --- a/src/TortoiseProc/GitLogListAction.cpp +++ b/src/TortoiseProc/GitLogListAction.cpp @@ -159,26 +159,22 @@ void CGitLogList::ContextMenuAction(int cmd,int FirstSelect, int LastSelect) break; case ID_CREATE_BRANCH: CAppUtils::CreateBranchTag(FALSE,&pSelLogEntry->m_CommitHash); - m_HashMap.clear(); - g_Git.GetMapHashToFriendName(m_HashMap); + ReloadHashMap(); Invalidate(); break; case ID_CREATE_TAG: CAppUtils::CreateBranchTag(TRUE,&pSelLogEntry->m_CommitHash); - m_HashMap.clear(); - g_Git.GetMapHashToFriendName(m_HashMap); + ReloadHashMap(); Invalidate(); break; case ID_SWITCHTOREV: CAppUtils::Switch(&pSelLogEntry->m_CommitHash); - m_HashMap.clear(); - g_Git.GetMapHashToFriendName(m_HashMap); + ReloadHashMap(); Invalidate(); break; case ID_RESET: CAppUtils::GitReset(&pSelLogEntry->m_CommitHash); - m_HashMap.clear(); - g_Git.GetMapHashToFriendName(m_HashMap); + ReloadHashMap(); Invalidate(); break; default: