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

[EGIT PATCH 2/4] Add a method to RepositoryMapping to get the directory for not-yet-mapped projects

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Apr 8, 2009, 15:51 UTC
Message-ID
<1239205891-28236-2-git-send-email-robin.rosenberg@dewire.com>
In-Reply-To
<1239205891-28236-1-git-send-email-robin.rosenberg@dewire.com>

Usually a RepositoryMapping has an associated Repository. Not so when it is returned from the RepositoryFinded.

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
---
 .../egit/core/project/RepositoryMapping.java       |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/org.spearce.egit.core/src/org/spearce/egit/core/project/RepositoryMapping.java b/org.spearce.egit.core/src/org/spearce/egit/core/project/RepositoryMapping.java
index e9df630..b49f380 100644
--- a/org.spearce.egit.core/src/org/spearce/egit/core/project/RepositoryMapping.java
+++ b/org.spearce.egit.core/src/org/spearce/egit/core/project/RepositoryMapping.java
@@ -234,4 +234,11 @@ public static RepositoryMapping getMapping(final IResource resource) {
 
 		return ((GitProvider)rp).getData().getRepositoryMapping(resource);
 	}
+
+	/**
+	 * @return the name of the .git directory
+	 */
+	public String getGitDir() {
+		return gitdirPath;
+	}
 }
-- 
1.6.2.2.446.gfbdc0
Previous: Robin RosenbergNext: Robin Rosenberg
Message 2 of 4 in “Add actual test for success to ConnectOperationTest”
  1. 1/4 Add actual test for success to ConnectOperationTestRobin Rosenberg, Apr 8, 2009
  2. 2/4 Add a method to RepositoryMapping to get the directory for not-yet-mapped projectsRobin Rosenberg, Apr 8, 2009
  3. 3/4 Use explicit bundle name in UIText to aid IDE integrationRobin Rosenberg, Apr 8, 2009
  4. 4/4 Multi-project connect to Git providerRobin Rosenberg, Apr 8, 2009

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.