Git log: reset contained branches cache on refresh

This commit is contained in:
irengrig
2010-12-23 18:13:41 +03:00
parent 53b27c41d2
commit 11014fdc4e
2 changed files with 7 additions and 0 deletions
@@ -93,4 +93,10 @@ public class DetailsCache {
return myBranches.get(new Pair<VirtualFile, AbstractHash>(root, hash));
}
}
public void resetBranchesCache() {
synchronized (myLock) {
myBranches.clear();
}
}
}
@@ -1063,6 +1063,7 @@ public class GitLogUI implements Disposable {
private void reloadRequest() {
myState = StepType.CONTINUE;
final int was = myTableModel.getRowCount();
myDetailsCache.resetBranchesCache();
final Collection<String> startingPoints = mySelectedBranch == null ? Collections.<String>emptyList() : Collections.singletonList(mySelectedBranch);
myDescriptionRenderer.resetIcons();
if (StringUtil.isEmptyOrSpaces(myPreviousFilter)) {