Re: [EGIT PATCH 2/4] Use the Git sort order.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oops, lost the decoration here.

-- robin

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 0c4683e..5c250c0 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
@@ -274,11 +274,11 @@ public class GitProjectData {
                return (RepositoryMapping) c2mapping.get(r);
        }

-       public TreeEntry[] getActiveDiffTreeEntries(IResource r)
+       public TreeEntry[] getActiveDiffTreeEntries(IResource res)
                        throws CoreException {
                String s = null;
                RepositoryMapping m = null;
-
+               IResource r = res;
                while (r != null) {
                        m = getRepositoryMapping(r);
                        if (m != null) {
@@ -296,7 +296,7 @@ public class GitProjectData {

                if (s != null && m != null && m.getActiveDiff() != null) {
                        try {
-                               if (r.getType() == IResource.FILE)
+                               if (res.getType() == IResource.FILE)
                                        return m.getActiveDiff().findBlobMember(s);
                                else
                                        return m.getActiveDiff().findTreeMember(s);
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]