OSDN Git Service
(root)
/
tortoisegit
/
TortoiseGitJp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5906ed3
)
fixed icon overlays for unversioned directories when using TGitCache
author
Myagi
<snowcoder@gmail.com>
Tue, 14 Jul 2009 02:48:39 +0000
(
04:48
+0200)
committer
Frank Li
<lznuaa@gmail.com>
Tue, 14 Jul 2009 03:37:54 +0000
(11:37 +0800)
src/TGitCache/StatusCacheEntry.cpp
patch
|
blob
|
history
diff --git
a/src/TGitCache/StatusCacheEntry.cpp
b/src/TGitCache/StatusCacheEntry.cpp
index
5bedb4e
..
4dae477
100644
(file)
--- a/
src/TGitCache/StatusCacheEntry.cpp
+++ b/
src/TGitCache/StatusCacheEntry.cpp
@@
-258,6
+258,12
@@
void CStatusCacheEntry::BuildCacheResponse(TSVNCacheResponse& response, DWORD& r
response.m_status = m_GitStatus;
\r
responseLength = sizeof(response.m_status);
\r
}
\r
+
\r
+ // directories that are empty or only contain unversioned files will be git_wc_status_incomplete, report as unversioned
\r
+ if (response.m_status.text_status == git_wc_status_incomplete)
\r
+ {
\r
+ response.m_status.text_status = response.m_status.prop_status = git_wc_status_unversioned;
\r
+ }
\r
}
\r
\r
bool CStatusCacheEntry::IsVersioned() const
\r