git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Apr 23, 2007, 22:39 UTC
Message-ID
<200704240039.48892.robin.rosenberg.lists@dewire.com>
In-Reply-To
<20070422213602.26396.59463.stgit@lathund.dewire.com>
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);
Previous: Robin RosenbergNext: Shawn O. Pearce
Message 4 of 8 in “Unit test for plugin and then some”
  1. 0/4 Unit test for plugin and then someRobin Rosenberg, Apr 22, 2007
  2. 1/4 Drop unneeded GitTreeStorageRobin Rosenberg, Apr 22, 2007
  3. 2/4 Use the Git sort order.Robin Rosenberg, Apr 22, 2007
  4. Robin RosenbergApr 23, 2007
  5. Shawn O. PearceApr 24, 2007
  6. 3/4 Add writeRef method and make writeSymref public.Robin Rosenberg, Apr 22, 2007
  7. 4/4 Add a JUnit test project for egit.Robin Rosenberg, Apr 22, 2007
  8. Robin RosenbergApr 23, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.