From: Robin Rosenberg <robin.rosenberg@dewire.com>
To: spearce@spearce.org
Cc: git@vger.kernel.org, Robin Rosenberg <robin.rosenberg@dewire.com>
Subject: [EGIT PATCH 2/4] Add a method to RepositoryMapping to get the directory for not-yet-mapped projects
Date: Wed, 8 Apr 2009 17:51:29 +0200 [thread overview]
Message-ID: <1239205891-28236-2-git-send-email-robin.rosenberg@dewire.com> (raw)
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
next prev parent reply other threads:[~2009-04-08 15:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-08 15:51 [EGIT PATCH 1/4] Add actual test for success to ConnectOperationTest Robin Rosenberg
2009-04-08 15:51 ` Robin Rosenberg [this message]
2009-04-08 15:51 ` [EGIT PATCH 3/4] Use explicit bundle name in UIText to aid IDE integration Robin Rosenberg
2009-04-08 15:51 ` [EGIT PATCH 4/4] Multi-project connect to Git provider Robin Rosenberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1239205891-28236-2-git-send-email-robin.rosenberg@dewire.com \
--to=robin.rosenberg@dewire.com \
--cc=git@vger.kernel.org \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).