DORMANTno replies

[--to=spearce@spearce.org PATCH] Detect resource changes.

From: Robin Rosenberg <hidden>
Date: 2016-06-15 22:43:06
Subsystem: the rest · Maintainer: Linus Torvalds

Another oops from the patch to use git ordering in trees.

Signed-off-by: Robin Rosenberg <redacted>
---

 .../spearce/egit/core/project/GitProjectData.java  |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff --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
index 00d5186..431e0c4 100644
--- 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
@@ -387,7 +387,8 @@ public class GitProjectData {
 				public boolean visit(final IResourceDelta d)
 						throws CoreException {
 					final int f = d.getFlags();
-					IResource r = d.getResource();
+					IResource res = d.getResource();
+					IResource r = res;
 					if ((f & IResourceDelta.CONTENT) != 0
 							|| (f & IResourceDelta.ENCODING) != 0
 							|| r instanceof IContainer) {
@@ -420,7 +421,7 @@ public class GitProjectData {
 							try {
 								synchronized (cacheTree) {
 									final TreeEntry e;
-									if (r.getType() == IResource.FILE)
+									if (res.getType() == IResource.FILE)
 										e = cacheTree.findBlobMember(s);
 									else
 										e = cacheTree.findTreeMember(s);
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help