From be97c22691ccf6c37699a36efe313716b6392008 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 30 Jul 2012 01:04:02 +0200 Subject: [PATCH] TGitCache: Show "assume-unchanged" files as clean Signed-off-by: Sven Strickroth --- src/Git/GitIndex.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Git/GitIndex.cpp b/src/Git/GitIndex.cpp index a8b4e4a43..744e4abdd 100644 --- a/src/Git/GitIndex.cpp +++ b/src/Git/GitIndex.cpp @@ -127,7 +127,11 @@ int CGitIndexList::GetFileStatus(const CString &gitdir,const CString &pathorg,gi if (index >= size() ) return -1; - if (time == at(index).m_ModifyTime) + if (at(index).m_Flags & GIT_IDXENTRY_VALID) + { + *status = git_wc_status_normal; + } + else if (time == at(index).m_ModifyTime) { *status = git_wc_status_normal; } -- 2.11.4.GIT