{"thread":{"id":"7822","subject":"[--to=spearce@spearce.org PATCH] Detect resource changes.","startedAt":"2007-04-24T23:31:17Z","lastAt":"2007-04-24T23:31:17Z","messageCount":1,"participants":["Robin Rosenberg"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"40371","messageId":"20070424233117.27409.11307.stgit@lathund.dewire.com","threadId":"7822","inReplyTo":null,"subject":"[--to=spearce@spearce.org PATCH] Detect resource changes.","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg@dewire.com","sentAt":"2007-04-24T23:31:17Z","receivedAt":"2007-04-24T23:31:17Z","isPatch":true,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"Another oops from the patch to use git ordering in trees.\n\nSigned-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>\n---\n\n .../spearce/egit/core/project/GitProjectData.java  |    5 +++--\n 1 files changed, 3 insertions(+), 2 deletions(-)\n\ndiff --git a/org.spearce.egit.core/src/org/spearce/egit/core/project/GitProjectData.java b/org.spearce.egit.core/src/org/spearce/egit/core/project/GitProjectData.java\nindex 00d5186..431e0c4 100644\n--- a/org.spearce.egit.core/src/org/spearce/egit/core/project/GitProjectData.java\n+++ b/org.spearce.egit.core/src/org/spearce/egit/core/project/GitProjectData.java\n@@ -387,7 +387,8 @@ public class GitProjectData {\n \t\t\t\tpublic boolean visit(final IResourceDelta d)\n \t\t\t\t\t\tthrows CoreException {\n \t\t\t\t\tfinal int f = d.getFlags();\n-\t\t\t\t\tIResource r = d.getResource();\n+\t\t\t\t\tIResource res = d.getResource();\n+\t\t\t\t\tIResource r = res;\n \t\t\t\t\tif ((f & IResourceDelta.CONTENT) != 0\n \t\t\t\t\t\t\t|| (f & IResourceDelta.ENCODING) != 0\n \t\t\t\t\t\t\t|| r instanceof IContainer) {\n@@ -420,7 +421,7 @@ public class GitProjectData {\n \t\t\t\t\t\t\ttry {\n \t\t\t\t\t\t\t\tsynchronized (cacheTree) {\n \t\t\t\t\t\t\t\t\tfinal TreeEntry e;\n-\t\t\t\t\t\t\t\t\tif (r.getType() == IResource.FILE)\n+\t\t\t\t\t\t\t\t\tif (res.getType() == IResource.FILE)\n \t\t\t\t\t\t\t\t\t\te = cacheTree.findBlobMember(s);\n \t\t\t\t\t\t\t\t\telse\n \t\t\t\t\t\t\t\t\t\te = cacheTree.findTreeMember(s);\n"}]}