From f8241d46cccf231857e836a50d2b52b373c59e1b Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Wed, 14 Jun 2017 22:12:08 +0200 Subject: [PATCH] Add more debugging info to TGitCache when (re)loading index and HEAD tree Signed-off-by: Sven Strickroth --- src/Git/GitIndex.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Git/GitIndex.cpp b/src/Git/GitIndex.cpp index 2d2da4dfa..a106678ff 100644 --- a/src/Git/GitIndex.cpp +++ b/src/Git/GitIndex.cpp @@ -147,6 +147,8 @@ int CGitIndexList::ReadIndex(CString dgitdir) CGit::GetFileModifyTime(g_AdminDirMap.GetWorktreeAdminDir(dgitdir) + L"index", &m_LastModifyTime); std::sort(this->begin(), this->end(), SortIndex); + CTraceToOutputDebugString::Instance()(_T(__FUNCTION__) L": Reloaded index for repo: %s\n", (LPCTSTR)dgitdir); + return 0; } @@ -653,6 +655,8 @@ int CGitHeadFileList::ReadTree() std::sort(this->begin(), this->end(), SortTree); m_TreeHash = git_commit_id(commit)->id; + CTraceToOutputDebugString::Instance()(_T(__FUNCTION__) L": Reloaded HEAD tree (commit is %s) for repo: %s\n", (LPCTSTR)m_Head.ToString(), (LPCTSTR)m_Gitdir); + return 0; } int CGitIgnoreItem::FetchIgnoreList(const CString& projectroot, const CString& file, bool isGlobal, int* ignoreCase) -- 2.11.4.GIT