TGitCache: Clear cache of subdirectories on refresh
commiteb2430ed578f6527272e7435c3723f8d37fea287
authorSven Strickroth <email@cs-ware.de>
Sat, 19 Jan 2013 20:40:47 +0000 (19 21:40 +0100)
committerSven Strickroth <email@cs-ware.de>
Sat, 19 Jan 2013 20:47:51 +0000 (19 21:47 +0100)
tree8f65410a5b92726d584fdc32fa5bbdefd3d74b50
parent5363cf4c3ad87ee4e8213c1cef4f5de0df9333fd
TGitCache: Clear cache of subdirectories on refresh

A hard reset to HEAD in the following repository caused A to be reported as modified when f was added in an uncommitted merge (i.e. hard reset removes f and B, but the state is still in the directory cache):

repo
| A (directory)
  | B (directory)
    | f (added file, in index)

Signed-off-by: Sven Strickroth <email@cs-ware.de>
src/TGitCache/CachedDirectory.cpp